Class: RSpec::Bash::Mocks::Doubles::AbstractDouble
- Inherits:
-
Object
- Object
- RSpec::Bash::Mocks::Doubles::AbstractDouble
- Defined in:
- lib/rspec/bash/mocks/doubles/abstract_double.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#behaviors ⇒ Object
Returns the value of attribute behaviors.
-
#call_original ⇒ Object
Returns the value of attribute call_original.
-
#calls ⇒ Object
Returns the value of attribute calls.
-
#expected_call_count ⇒ Object
Returns the value of attribute expected_call_count.
-
#expected_calls ⇒ Object
Returns the value of attribute expected_calls.
-
#subshell ⇒ Object
Returns the value of attribute subshell.
Instance Method Summary collapse
- #apply ⇒ Object
- #call_count ⇒ Object
-
#initialize ⇒ AbstractDouble
constructor
A new instance of AbstractDouble.
Constructor Details
#initialize ⇒ AbstractDouble
Returns a new instance of AbstractDouble.
15 16 17 18 19 20 21 22 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 15 def initialize(*) @behaviors = [] @call_original = false @calls = [] @expected_call_count = [:at_least, 1] @expected_calls = [] @subshell = true end |
Instance Attribute Details
#behaviors ⇒ Object
Returns the value of attribute behaviors.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def behaviors @behaviors end |
#call_original ⇒ Object
Returns the value of attribute call_original.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def call_original @call_original end |
#calls ⇒ Object
Returns the value of attribute calls.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def calls @calls end |
#expected_call_count ⇒ Object
Returns the value of attribute expected_call_count.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def expected_call_count @expected_call_count end |
#expected_calls ⇒ Object
Returns the value of attribute expected_calls.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def expected_calls @expected_calls end |
#subshell ⇒ Object
Returns the value of attribute subshell.
6 7 8 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 6 def subshell @subshell end |
Instance Method Details
#apply ⇒ Object
24 25 26 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 24 def apply fail "NotImplemented" end |
#call_count ⇒ Object
28 29 30 |
# File 'lib/rspec/bash/mocks/doubles/abstract_double.rb', line 28 def call_count fail "NotImplemented" end |