Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TorqueBox.transaction do
- queue.publish("first")
- begin
- TorqueBox.transaction(:requires_new => true) do
- queue.publish("second")
- raise "rollback"
- end
- rescue Exception => e
- e.message.should == 'rollback'
- end
- end
- queue.first.decode.should == 'first'
- queue.count.should == 1
Add Comment
Please, Sign In to add comment