RSpec predicate matchers
Rspec has a pretty handy feature called predicate matchers to test predicate methods on your classes.
Spying with Rspec
Spying is used to assert if a method has been called, here we will see how to use spies with Rspec.
Rspec has a pretty handy feature called predicate matchers to test predicate methods on your classes.
Spying is used to assert if a method has been called, here we will see how to use spies with Rspec.