diff options
author | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-23 09:33:33 +0200 |
---|---|---|
committer | Vitali Tatarintev <vtatarintev@gitlab.com> | 2019-08-28 08:43:47 +0200 |
commit | e1b8b93207ccbe3221f5c8e0447d17582f14a0db (patch) | |
tree | f9d46be91db76ebd88ffc22f0f5d7c8a53ab6023 /spec/rubocop | |
parent | d40b7ea37534e57d134b9a5e1268aa87d53c513d (diff) | |
download | gitlab-ce-e1b8b93207ccbe3221f5c8e0447d17582f14a0db.tar.gz |
Replace double quotes with single quotes
Diffstat (limited to 'spec/rubocop')
-rw-r--r-- | spec/rubocop/cop/rspec/be_success_matcher_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/rubocop/cop/rspec/be_success_matcher_spec.rb b/spec/rubocop/cop/rspec/be_success_matcher_spec.rb index 26044b1ef24..b55e63ec7f0 100644 --- a/spec/rubocop/cop/rspec/be_success_matcher_spec.rb +++ b/spec/rubocop/cop/rspec/be_success_matcher_spec.rb @@ -42,17 +42,17 @@ describe RuboCop::Cop::RSpec::BeSuccessMatcher do allow(cop).to receive(:in_controller_spec?).and_return(true) end - context "using expect(response).to be_success call" do + context 'using expect(response).to be_success call' do it_behaves_like 'an offensive be_success call', OFFENSE_CALL_EXPECT_TO_BE_SUCCESS it_behaves_like 'an autocorrected be_success call', OFFENSE_CALL_EXPECT_TO_BE_SUCCESS, CALL_EXPECT_TO_BE_SUCCESSFUL end - context "using is_expected.to be_success call" do + context 'using is_expected.to be_success call' do it_behaves_like 'an offensive be_success call', OFFENSE_CALL_IS_EXPECTED_TO_BE_SUCCESS it_behaves_like 'an autocorrected be_success call', OFFENSE_CALL_IS_EXPECTED_TO_BE_SUCCESS, CALL_IS_EXPECTED_TO_BE_SUCCESSFUL end - context "using expect(response).to be_successful" do + context 'using expect(response).to be_successful' do it "does not register an offense" do inspect_source(CALL_EXPECT_TO_BE_SUCCESSFUL) @@ -60,8 +60,8 @@ describe RuboCop::Cop::RSpec::BeSuccessMatcher do end end - context "using is_expected.to be_successful" do - it "does not register an offense" do + context 'using is_expected.to be_successful' do + it 'does not register an offense' do inspect_source(CALL_IS_EXPECTED_TO_BE_SUCCESSFUL) expect(cop.offenses.size).to eq(0) @@ -70,16 +70,16 @@ describe RuboCop::Cop::RSpec::BeSuccessMatcher do end context 'outside of a controller spec file' do - context "using expect(response).to be_success call" do - it "does not register an offense" do + context 'using expect(response).to be_success call' do + it 'does not register an offense' do inspect_source(OFFENSE_CALL_EXPECT_TO_BE_SUCCESS) expect(cop.offenses.size).to eq(0) end end - context "using is_expected.to be_success call" do - it "does not register an offense" do + context 'using is_expected.to be_success call' do + it 'does not register an offense' do inspect_source(OFFENSE_CALL_IS_EXPECTED_TO_BE_SUCCESS) expect(cop.offenses.size).to eq(0) |