Class: Given::NegativeExpectation

Inherits:
Expectation show all
Defined in:
lib/given/expectation.rb

Instance Method Summary collapse

Methods inherited from Expectation

#<, #<=, #==, #=~, #>, #>=, #check, #initialize, #method_missing, #nil?, #not

Constructor Details

This class inherits a constructor from Given::Expectation

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Given::Expectation

Instance Method Details

#evaluate_conditionObject



85
86
87
# File 'lib/given/expectation.rb', line 85

def evaluate_condition
  ! yield(@value)
end

#twistObject



88
89
90
# File 'lib/given/expectation.rb', line 88

def twist
  "not "
end