Commit 0bb320cf authored by Robert Speicher's avatar Robert Speicher

Fix Style/HashSyntax violations

parent 4dbf118a
...@@ -295,7 +295,7 @@ describe 'Issues', feature: true do ...@@ -295,7 +295,7 @@ describe 'Issues', feature: true do
issue.save issue.save
end end
it 'allows user to remove assignee', :js => true do it 'allows user to remove assignee', js: true do
visit namespace_project_issue_path(project.namespace, project, issue) visit namespace_project_issue_path(project.namespace, project, issue)
expect(page).to have_content "Assignee: #{user2.name}" expect(page).to have_content "Assignee: #{user2.name}"
......
...@@ -61,7 +61,7 @@ describe PreferencesHelper do ...@@ -61,7 +61,7 @@ describe PreferencesHelper do
(1..5).each do |color_scheme_id| (1..5).each do |color_scheme_id|
context "with color_scheme_id == #{color_scheme_id}" do context "with color_scheme_id == #{color_scheme_id}" do
it 'should return a string' do it 'should return a string' do
current_user = double(:color_scheme_id => color_scheme_id) current_user = double(color_scheme_id: color_scheme_id)
allow(self).to receive(:current_user).and_return(current_user) allow(self).to receive(:current_user).and_return(current_user)
expect(user_color_scheme_class).to be_kind_of(String) expect(user_color_scheme_class).to be_kind_of(String)
end end
......
...@@ -25,7 +25,7 @@ RSpec.configure do |config| ...@@ -25,7 +25,7 @@ RSpec.configure do |config|
DatabaseCleaner.strategy = :transaction DatabaseCleaner.strategy = :transaction
end end
config.before(:each, :js => true) do config.before(:each, js: true) do
DatabaseCleaner.strategy = :truncation DatabaseCleaner.strategy = :truncation
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment