Module: RSpec::Bash::Mocks::Matchers
- Defined in:
- lib/rspec/bash/mocks/matchers.rb,
lib/rspec/bash/mocks/matchers/receive.rb,
lib/rspec/bash/mocks/matchers/test_by.rb,
lib/rspec/bash/mocks/matchers/test_for.rb,
lib/rspec/bash/mocks/matchers/base_matcher.rb
Defined Under Namespace
Classes: BaseMatcher, Receive, TestBy, TestFor
Instance Method Summary
collapse
Instance Method Details
#receive(*args) ⇒ Object
9
10
11
|
# File 'lib/rspec/bash/mocks/matchers.rb', line 9
def receive(*args)
Receive.new(*args)
end
|
#receive_function(method_name, &block) ⇒ Object
13
14
15
|
# File 'lib/rspec/bash/mocks/matchers.rb', line 13
def receive_function(method_name, &block)
::RSpec::Mocks::Matchers::Receive.new(method_name, block)
end
|
#test_by(*args) ⇒ Object
21
22
23
|
# File 'lib/rspec/bash/mocks/matchers.rb', line 21
def test_by(*args)
TestBy.new(*args)
end
|
#test_for(*args) ⇒ Object
17
18
19
|
# File 'lib/rspec/bash/mocks/matchers.rb', line 17
def test_for(*args)
TestFor.new(*args)
end
|