Sha256: 1b949efb39fa6b76889e292b76f21f5c5c3397c3e1bac2df72fa74a0ae88e175

Contents?: true

Size: 377 Bytes

Versions: 4

Compression:

Stored size: 377 Bytes

Contents

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

context "should_equal" do
  specify "should pass when objects are the same instance" do
    :apple.should_equal(:apple)
  end

  specify "should fail when objects are not the same instance" do
    lambda { "apple".should_equal("apple") }.should_fail_with "expected \"apple\", got \"apple\" (using .equal?)"
  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_equal_spec.rb
rspec-0.8.0 spec/spec/expectations/should/should_equal_spec.rb
rspec-0.8.1 spec/spec/expectations/should/should_equal_spec.rb
rspec-0.8.2 spec/spec/expectations/should/should_equal_spec.rb