Module Spec::Expectations::StringExpectations
In: lib/spec/expectations/extensions/string.rb

rspec adds all of these expectations to every String object.

Methods

Public Instance methods

Passes if receiver =~ expression

[Source]

   # File lib/spec/expectations/extensions/string.rb, line 7
7:       def should_match(expression)
8:         should.match(expression)
9:       end

Passes unless receiver =~ expression

[Source]

    # File lib/spec/expectations/extensions/string.rb, line 12
12:       def should_not_match(expression)
13:         should.not.match(expression)
14:       end

[Validate]