Class Index [+]

Quicksearch

Spec::Matchers::BeSameAs

Public Class Methods

new(*args, &block) click to toggle source
     # File lib/spec/matchers/be.rb, line 182
182:       def initialize(*args, &block)
183:         @expected = args.shift
184:         @args = args
185:       end

Public Instance Methods

description() click to toggle source
     # File lib/spec/matchers/be.rb, line 200
200:       def description
201:         "be #{expected_to_sentence}#{args_to_sentence}"
202:       end
failure_message_for_should() click to toggle source
     # File lib/spec/matchers/be.rb, line 192
192:       def failure_message_for_should
193:         "expected #{@expected}, got #{@actual.inspect}"
194:       end
failure_message_for_should_not() click to toggle source
     # File lib/spec/matchers/be.rb, line 196
196:       def failure_message_for_should_not
197:         "expected not #{@expected}, got #{@actual.inspect}"
198:       end
matches?(actual) click to toggle source
     # File lib/spec/matchers/be.rb, line 187
187:       def matches?(actual)
188:         @actual = actual
189:         @actual.equal?(@expected)
190:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.