Guest User

Untitled

a guest
Jul 18th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. describe ResqueJobLogging do
  2. it "should enumerate arguments" do
  3. Rails.logger = mock()
  4. Rails.logger.should_receive(:auto_flushing=).with(1)
  5. Rails.logger.should_receive(:info).with(/arg1="foo" arg2="bar" arg3="baz"/)
  6. Object.extend(ResqueJobLogging)
  7. Object.around_perform_log_job("foo", "bar", "baz") {sleep 1}
  8. end
  9. end
Add Comment
Please, Sign In to add comment