Skip to content

Version 4.1.0

Compare
Choose a tag to compare
@bitwes bitwes released this 10 Jun 18:38

4.1.0

  • 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.
    • It now indents multi-line input correctly.