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
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-10 11:57:47 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-10 11:57:47 +0300
commit9a92c16a50b7f37b74426a454c235cf8e9ee8d9b (patch)
treede246664ed1259f1bf9fa95c8eaf0a586ef2322a /qa/spec/scenario
parent3abae1a78d3b6451f486466acb73e0f21f47f035 (diff)
Refactor QA specs runners and improve specs
Diffstat (limited to 'qa/spec/scenario')
-rw-r--r--qa/spec/scenario/entrypoint_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/qa/spec/scenario/entrypoint_spec.rb b/qa/spec/scenario/entrypoint_spec.rb
index 61c239ff3e0..aec79dcea04 100644
--- a/qa/spec/scenario/entrypoint_spec.rb
+++ b/qa/spec/scenario/entrypoint_spec.rb
@@ -29,8 +29,7 @@ describe QA::Scenario::Entrypoint do
it 'should call runner with default arguments' do
subject.perform("test")
- expect(runner).to have_received(:rspec)
- .with(hash_including(files: 'qa/specs/features'))
+ expect(runner).to have_received(:files=).with('qa/specs/features')
end
end
@@ -38,8 +37,7 @@ describe QA::Scenario::Entrypoint do
it 'should call runner with paths' do
subject.perform('test', 'path1', 'path2')
- expect(runner).to have_received(:rspec)
- .with(hash_including(files: %w(path1 path2)))
+ expect(runner).to have_received(:files=).with(%w[path1 path2])
end
end
end