spec/rivendell/import/tasks_spec.rb in rivendell-import-0.0.5 vs spec/rivendell/import/tasks_spec.rb in rivendell-import-0.6

- old
+ new

@@ -3,12 +3,13 @@ describe Rivendell::Import::Tasks do let(:file) { Rivendell::Import::File.new "dummy.wav" } describe "#run" do - - it "should run each task" do + + it "should run each ready task" do task = subject.create(file) + subject.stub :ready_tasks => [task] subject.run rescue nil task.reload.status.should_not be_pending end end