Class: CommandUnit::Expectation

Inherits:
Object
  • Object
show all
Defined in:
lib/command-unit/expectation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



8
9
10
# File 'lib/command-unit/expectation.rb', line 8

def block
  @block
end

#descObject

Returns the value of attribute desc.



8
9
10
# File 'lib/command-unit/expectation.rb', line 8

def desc
  @desc
end