diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /qa/spec/runtime/release_spec.rb | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'qa/spec/runtime/release_spec.rb')
-rw-r--r-- | qa/spec/runtime/release_spec.rb | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/qa/spec/runtime/release_spec.rb b/qa/spec/runtime/release_spec.rb index e6b5a8dc315..f5d2c29bfb3 100644 --- a/qa/spec/runtime/release_spec.rb +++ b/qa/spec/runtime/release_spec.rb @@ -1,26 +1,26 @@ describe QA::Runtime::Release do - context 'when release version has extension strategy' do - let(:strategy) { spy('strategy') } + context "when release version has extension strategy" do + let(:strategy) { spy("strategy") } before do - stub_const('QA::CE::Strategy', strategy) - stub_const('QA::EE::Strategy', strategy) + stub_const("QA::CE::Strategy", strategy) + stub_const("QA::EE::Strategy", strategy) end - describe '#version' do - it 'return either CE or EE version' do + describe "#version" do + it "return either CE or EE version" do expect(subject.version).to eq(:CE).or eq(:EE) end end - describe '#strategy' do - it 'return the strategy constant' do + describe "#strategy" do + it "return the strategy constant" do expect(subject.strategy).to eq strategy end end - describe 'delegated class methods' do - it 'delegates all calls to strategy class' do + describe "delegated class methods" do + it "delegates all calls to strategy class" do described_class.some_method(1, 2) expect(strategy).to have_received(:some_method) @@ -29,20 +29,20 @@ describe QA::Runtime::Release do end end - context 'when release version does not have extension strategy' do + context "when release version does not have extension strategy" do before do allow_any_instance_of(described_class) - .to receive(:version).and_return('something') + .to receive(:version).and_return("something") end - describe '#strategy' do - it 'raises error' do + describe "#strategy" do + it "raises error" do expect { subject.strategy }.to raise_error(LoadError) end end - describe 'delegated class methods' do - it 'raises error' do + describe "delegated class methods" do + it "raises error" do expect { described_class.some_method(2, 3) }.to raise_error(LoadError) end end |