From 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 Mon Sep 17 00:00:00 2001 From: Toon Claes Date: Thu, 28 Feb 2019 19:57:34 +0100 Subject: Ran standardrb --fix on the whole codebase 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_. --- qa/spec/runtime/release_spec.rb | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'qa/spec/runtime/release_spec.rb') 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 -- cgit v1.2.1