Skip to content
Snippets Groups Projects
Unverified Commit 43a9b6cd authored by Andrejs Cunskis's avatar Andrejs Cunskis
Browse files

Fix order dependant spec, do not write file in test

parent 4651383e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -56,6 +56,7 @@ describe Gitlab::QA::Report::ReportResults do
allow(subject.__send__(:gitlab)).to receive(:assert_user_permission!)
allow(::Dir).to receive(:glob).and_return([test_file])
allow(::File).to receive(:read).with(test_file).and_return(test_data)
allow(::File).to receive(:write).with('file.json', kind_of(String))
end
 
context 'when a test case is linked in the given test' do
Loading
Loading
Loading
Loading
@@ -27,6 +27,7 @@ module Gitlab
Runtime::Scenario.define(:seed_db, false)
Runtime::Scenario.define(:seed_admin_token, true)
Runtime::Scenario.define(:omnibus_exec_commands, [])
Runtime::Scenario.define(:skip_server_hooks, false)
end
 
RSpec.shared_examples "weekday_hours" do |weekday_string, hours_int|
Loading
Loading
@@ -41,7 +42,10 @@ module Gitlab
 
describe '#perform' do
it 'throws an error with incorrect version specified' do
expect { described_class.perform('foo') }.to raise_error(Gitlab::QA::Release::InvalidImageNameError, "The release image name 'foo' does not have the expected format.")
expect { described_class.perform('foo') }.to raise_error(
Gitlab::QA::Release::InvalidImageNameError,
"The release image name 'foo' does not have the expected format."
)
end
 
context 'with a version' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment