Class Test::Spec::CustomShould
In: lib/test/spec.rb
Parent: Object

Methods

Attributes

object  [RW] 

Public Class methods

[Source]

     # File lib/test/spec.rb, line 306
306:     def initialize(obj)
307:       self.object = obj
308:     end

Public Instance methods

[Source]

     # File lib/test/spec.rb, line 319
319:     def assumptions(*args, &block)
320:       raise NotImplementedError, "you need to supply a #{self.class}#matches? method"
321:     end

[Source]

     # File lib/test/spec.rb, line 310
310:     def failure_message
311:       "#{self.class.name} failed"
312:     end

[Source]

     # File lib/test/spec.rb, line 314
314:     def matches?(*args, &block)
315:       assumptions(*args, &block)
316:       true
317:     end

[Validate]