Sha256: d79ecd139030ce32aa44cd85561479ddbd79dbdc02119692ecea17acefa634ad

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper.rb'

context "should_not_match" do
  specify "should not raise when objects do not match" do
    "hi aslak".should_not_match(/steve/)
  end

  specify "should raise when objects match" do
    lambda { "hi aslak".should_not_match(/aslak/) }.should_fail
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
riess-0.0.8 vendor/rspec-0.8.2/spec/spec/expectations/should/should_not_match_spec.rb
rspec-0.8.0 spec/spec/expectations/should/should_not_match_spec.rb
rspec-0.8.1 spec/spec/expectations/should/should_not_match_spec.rb
rspec-0.8.2 spec/spec/expectations/should/should_not_match_spec.rb