spec/lib/integration_spec.rb in wisper-1.0.0 vs spec/lib/integration_spec.rb in wisper-1.0.1
- old
+ new
@@ -54,15 +54,18 @@
command.execute(false)
end
it 'subscribes block can be chained' do
insider = double('Insider')
+
insider.should_receive(:render).with('success')
+ insider.should_receive(:render).with('failure')
command = MyCommand.new
command.on(:success) { |message| insider.render('success') }
.on(:failure) { |message| insider.render('failure') }
command.execute(true)
+ command.execute(false)
end
end