Module | Spec::Expectations::StringExpectations |
In: |
lib/spec/expectations/extensions/string.rb
|
rspec adds all of these expectations to every String object.
Passes if receiver =~ expression
# File lib/spec/expectations/extensions/string.rb, line 7 7: def should_match(expression) 8: should.match(expression) 9: end