From 278ae7e413d824c2d233b6feb586afe6f0974031 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 26 Jun 2013 17:02:24 -0400 Subject: [PATCH] Fix exporter spec brokenness in random mode --- spec/components/jobs/exporter_spec.rb | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/spec/components/jobs/exporter_spec.rb b/spec/components/jobs/exporter_spec.rb index a46e8ed7d7b..789fe6d8772 100644 --- a/spec/components/jobs/exporter_spec.rb +++ b/spec/components/jobs/exporter_spec.rb @@ -20,13 +20,10 @@ describe Jobs::Exporter do @exporter_args = {} end - it "should indicate that an export is now running" do - Export.expects(:set_export_started) - Jobs::Exporter.new.execute( @exporter_args ) - end - - it "should indicate that an export is not running after it's done" do - Export.expects(:set_export_is_not_running) + it "should indicate that an export is running" do + seq = sequence('call sequence') + Export.expects(:set_export_started).in_sequence(seq).at_least_once + Export.expects(:set_export_is_not_running).in_sequence(seq).at_least_once Jobs::Exporter.new.execute( @exporter_args ) end