Module: Surrogate::RSpec::Matchers

Defined in:
lib/surrogate/rspec.rb

Instance Method Summary collapse

Instance Method Details

#asked_for(method_name) ⇒ Object



45
46
47
# File 'lib/surrogate/rspec.rb', line 45

def asked_for(method_name)
  HaveBeenAskedForIts.new method_name
end

#asked_if(method_name) ⇒ Object



37
38
39
# File 'lib/surrogate/rspec.rb', line 37

def asked_if(method_name)
  HaveBeenAskedIf.new method_name
end

#have_been_asked_for_its(method_name) ⇒ Object



41
42
43
# File 'lib/surrogate/rspec.rb', line 41

def have_been_asked_for_its(method_name)
  HaveBeenAskedForIts.new method_name
end

#have_been_asked_if(method_name) ⇒ Object



33
34
35
# File 'lib/surrogate/rspec.rb', line 33

def have_been_asked_if(method_name)
  HaveBeenAskedIf.new method_name
end

#have_been_initialized_with(*initialization_args, &block) ⇒ Object



49
50
51
# File 'lib/surrogate/rspec.rb', line 49

def have_been_initialized_with(*initialization_args, &block)
  HaveBeenInitializedWith.new *initialization_args, &block
end

#have_been_told_to(method_name) ⇒ Object



25
26
27
# File 'lib/surrogate/rspec.rb', line 25

def have_been_told_to(method_name)
  HaveBeenToldTo.new method_name
end

#initialized_with(*initialization_args, &block) ⇒ Object



53
54
55
# File 'lib/surrogate/rspec.rb', line 53

def initialized_with(*initialization_args, &block)
  HaveBeenInitializedWith.new *initialization_args, &block
end

#told_to(method_name) ⇒ Object



29
30
31
# File 'lib/surrogate/rspec.rb', line 29

def told_to(method_name)
  HaveBeenToldTo.new method_name
end