diff --git a/spec/features/issues_spec.rb b/spec/features/issues_spec.rb index d803a1805de2039c47aabefd94bdf1f18cd6f1c7..142b66f168dfb9dc8c465d9a51c9a90a0c874703 100644 --- a/spec/features/issues_spec.rb +++ b/spec/features/issues_spec.rb @@ -295,7 +295,7 @@ describe 'Issues', feature: true do issue.save 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) expect(page).to have_content "Assignee: #{user2.name}" diff --git a/spec/helpers/preferences_helper_spec.rb b/spec/helpers/preferences_helper_spec.rb index 920de8c4325aab07794c838388e87a5747b1ff0d..d814b562113d733c8e71812b634e02b1fd102ff4 100644 --- a/spec/helpers/preferences_helper_spec.rb +++ b/spec/helpers/preferences_helper_spec.rb @@ -61,7 +61,7 @@ describe PreferencesHelper do (1..5).each do |color_scheme_id| context "with color_scheme_id == #{color_scheme_id}" 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) expect(user_color_scheme_class).to be_kind_of(String) end diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb index cca7652093a6e17bb5013123c36a81d797231ecd..6250737b9cdd8cd87a7e787f6f84430c23c7f57d 100644 --- a/spec/support/db_cleaner.rb +++ b/spec/support/db_cleaner.rb @@ -25,7 +25,7 @@ RSpec.configure do |config| DatabaseCleaner.strategy = :transaction end - config.before(:each, :js => true) do + config.before(:each, js: true) do DatabaseCleaner.strategy = :truncation end