You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the ability to assert that signals did or did not fire. By calling watch_signals Gut will monitor any signals emitted by the object. You can then later make assertions about whether or not a signal was emitted or whether it emitted a desired number of times, and even if it was emitted and passed specific parameters. The following methods were added for this feature, see the README for more information about them.
watch_signals
assert_signal_emitted
assert_signal_not_emitted
assert_signal_emitted_with_parameters
assert_signal_emit_count
assert_has_signal
get_signal_emit_count
get_signal_parameters
Some minor fixes to gut.p
It now performs a str on the input. So if you pass it an object or something that isn't a string it won't blow up.