spec/models/massive/step_spec.rb in massive-0.3.0 vs spec/models/massive/step_spec.rb in massive-0.4.0
- old
+ new
@@ -5,9 +5,11 @@
include_context "stubbed memory_consumption"
let(:process) { Massive::Process.new }
subject(:step) { process.steps.build }
+ before { step.stub(:process).and_return(process) }
+
describe ".perform" do
before do
Massive::Process.stub(:find_step).with(process.id, step.id).and_return(step)
end