Class: CommandUnit::Expectation
- Inherits:
-
Object
- Object
- CommandUnit::Expectation
- Defined in:
- lib/command-unit/expectation.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#desc ⇒ Object
Returns the value of attribute desc.
Instance Method Summary collapse
-
#initialize(expectation_text, &expectaton_block) ⇒ Expectation
constructor
A new instance of Expectation.
Constructor Details
#initialize(expectation_text, &expectaton_block) ⇒ Expectation
Returns a new instance of Expectation.
4 5 6 7 |
# File 'lib/command-unit/expectation.rb', line 4 def initialize(expectation_text, &expectaton_block) @desc = expectation_text @block = expectaton_block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
8 9 10 |
# File 'lib/command-unit/expectation.rb', line 8 def block @block end |
#desc ⇒ Object
Returns the value of attribute desc.
8 9 10 |
# File 'lib/command-unit/expectation.rb', line 8 def desc @desc end |