Parent

Class Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::Satisfy

Public Class Methods

new(&block) click to toggle source
   # File lib/rspec/matchers/built_in/satisfy.rb, line 5
5:         def initialize(&block)
6:           @block = block
7:         end

Public Instance Methods

description() click to toggle source
    # File lib/rspec/matchers/built_in/satisfy.rb, line 23
23:         def description
24:           "satisfy block"
25:         end
failure_message_for_should() click to toggle source
    # File lib/rspec/matchers/built_in/satisfy.rb, line 15
15:         def failure_message_for_should
16:           "expected #{@actual} to satisfy block"
17:         end
failure_message_for_should_not() click to toggle source
    # File lib/rspec/matchers/built_in/satisfy.rb, line 19
19:         def failure_message_for_should_not
20:           "expected #{@actual} not to satisfy block"
21:         end
matches?(actual, &block) click to toggle source
    # File lib/rspec/matchers/built_in/satisfy.rb, line 9
 9:         def matches?(actual, &block)
10:           @block = block if block
11:           @actual = actual
12:           @block.call(actual)
13:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.