Sha256: 44ca547c6bb2f75f77cddece82f89c9f066ebb0c9d320bd4bb028e8709a3cf74
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
module Spec module Expectations # rspec adds all of these expectations to every String object. module StringExpectations # Passes if receiver =~ expression def should_match(expression) should.match(expression) end # Passes unless receiver =~ expression def should_not_match(expression) should.not.match(expression) end end end end class String include Spec::Expectations::StringExpectations end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.7.5 | lib/spec/expectations/extensions/string.rb |
rspec-0.7.5.1 | lib/spec/expectations/extensions/string.rb |