Module: HerokuNotificationAssertions
- Includes:
- WebMock::API
- Defined in:
- lib/heroku_notification/test_unit.rb
Instance Method Summary collapse
Instance Method Details
#assert_notified_with(params) ⇒ Object
4 5 6 7 8 |
# File 'lib/heroku_notification/test_unit.rb', line 4 def assert_notified_with(params) assert_requested(:post, "https://notifications.heroku.com/notifications") do |req| params_in_post_body(params, req.body) end end |
#stub_notification ⇒ Object
10 11 12 |
# File 'lib/heroku_notification/test_unit.rb', line 10 def stub_notification stub_request(:post, "https://notifications.heroku.com/notifications") end |