Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorVitali Tatarintev <vtatarintev@gitlab.com>2019-08-23 10:33:33 +0300
committerVitali Tatarintev <vtatarintev@gitlab.com>2019-08-28 09:43:47 +0300
commite1b8b93207ccbe3221f5c8e0447d17582f14a0db (patch)
treef9d46be91db76ebd88ffc22f0f5d7c8a53ab6023 /spec
parentd40b7ea37534e57d134b9a5e1268aa87d53c513d (diff)
Replace double quotes with single quotes
Diffstat (limited to 'spec')
-rw-r--r--spec/rubocop/cop/rspec/be_success_matcher_spec.rb18
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)