diff options
Diffstat (limited to 'qa/spec/scenario/test/instance/all_spec.rb')
-rw-r--r-- | qa/spec/scenario/test/instance/all_spec.rb | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/qa/spec/scenario/test/instance/all_spec.rb b/qa/spec/scenario/test/instance/all_spec.rb index 1d96352550b..9311d1d8199 100644 --- a/qa/spec/scenario/test/instance/all_spec.rb +++ b/qa/spec/scenario/test/instance/all_spec.rb @@ -1,45 +1,3 @@ describe QA::Scenario::Test::Instance::All do - subject do - Class.new(described_class) do - tags :rspec, :foo - end - end - - context '#perform' do - let(:arguments) { spy('Runtime::Scenario') } - let(:release) { spy('Runtime::Release') } - let(:runner) { spy('Specs::Runner') } - - before do - stub_const('QA::Runtime::Release', release) - stub_const('QA::Runtime::Scenario', arguments) - stub_const('QA::Specs::Runner', runner) - - allow(runner).to receive(:perform).and_yield(runner) - end - - it 'sets an address of the subject' do - subject.perform("hello") - - expect(arguments).to have_received(:define) - .with(:gitlab_address, "hello") - end - - context 'no paths' do - it 'calls runner with default arguments' do - subject.perform("test") - - expect(runner).to have_received(:options=) - .with(['--tag', 'rspec,foo', '--', ::File.expand_path('../../../../qa/specs/features', __dir__)]) - end - end - - context 'specifying paths' do - it 'calls runner with paths' do - subject.perform('test', 'path1', 'path2') - - expect(runner).to have_received(:options=).with(%w[path1 path2]) - end - end - end + it_behaves_like 'a QA scenario class' end |