Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe ResqueJobLogging do
- it "should enumerate arguments" do
- Rails.logger = mock()
- Rails.logger.should_receive(:auto_flushing=).with(1)
- Rails.logger.should_receive(:info).with(/arg1="foo" arg2="bar" arg3="baz"/)
- Object.extend(ResqueJobLogging)
- Object.around_perform_log_job("foo", "bar", "baz") {sleep 1}
- end
- end
Add Comment
Please, Sign In to add comment