Class: MountainBerryFields::Test::AlwaysPass
- Inherits:
-
Object
- Object
- MountainBerryFields::Test::AlwaysPass
- Includes:
- Strategy
- Defined in:
- lib/mountain_berry_fields/test/always_pass.rb
Overview
Ask it if it passes
(it does)
Instance Attribute Summary
Attributes included from Strategy
Instance Method Summary collapse
Methods included from Strategy
#failure_message, for, #initialize, register, registered?, unregister
Instance Method Details
#pass? ⇒ Boolean
12 13 14 15 16 |
# File 'lib/mountain_berry_fields/test/always_pass.rb', line 12 def pass? eval code_to_test ensure return true end |