spec/async_sender_spec.rb in quebert-0.0.6 vs spec/async_sender_spec.rb in quebert-0.0.8
- old
+ new
@@ -77,6 +77,12 @@
email = "brad@bradgessler.com"
User.async_send(:emailizer, email)
@q.reserve.perform.should eql(email)
end
+ it "should async_send and successfully serialize param object" do
+ user = User.new(:first_name => 'Brad')
+ user2 = User.new(:first_name => 'Steel')
+ user.async_send(:email, user2)
+ @q.reserve.perform.first_name.should eql('Steel')
+ end
end
\ No newline at end of file