Fix exporter spec brokenness in random mode
This commit is contained in:
parent
6b58713fa6
commit
278ae7e413
|
@ -20,13 +20,10 @@ describe Jobs::Exporter do
|
||||||
@exporter_args = {}
|
@exporter_args = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should indicate that an export is now running" do
|
it "should indicate that an export is running" do
|
||||||
Export.expects(:set_export_started)
|
seq = sequence('call sequence')
|
||||||
Jobs::Exporter.new.execute( @exporter_args )
|
Export.expects(:set_export_started).in_sequence(seq).at_least_once
|
||||||
end
|
Export.expects(:set_export_is_not_running).in_sequence(seq).at_least_once
|
||||||
|
|
||||||
it "should indicate that an export is not running after it's done" do
|
|
||||||
Export.expects(:set_export_is_not_running)
|
|
||||||
Jobs::Exporter.new.execute( @exporter_args )
|
Jobs::Exporter.new.execute( @exporter_args )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue