Clearing config after Sauce spec to ensure clean test environment
This commit is contained in:
parent
d6765b1d03
commit
236be360d8
|
@ -241,6 +241,12 @@ describe Sauce::Config do
|
|||
end
|
||||
|
||||
describe Sauce do
|
||||
|
||||
# Ensure any doubles are removed to stop other tests choking
|
||||
after :all do
|
||||
Sauce.clear_config
|
||||
end
|
||||
|
||||
describe '#get_config' do
|
||||
context 'when #config has never been called' do
|
||||
# See: <https://github.com/sauce-labs/sauce_ruby/issues/59>
|
||||
|
@ -250,10 +256,6 @@ describe Sauce do
|
|||
Sauce.instance_variable_set(:@cfg, nil)
|
||||
end
|
||||
|
||||
after :all do
|
||||
|
||||
end
|
||||
|
||||
it 'should return a newly created Sauce::Config' do
|
||||
dummy_config = double('Sauce::Config')
|
||||
Sauce::Config.should_receive(:new).and_return(dummy_config)
|
||||
|
|
Loading…
Reference in New Issue