Class: MountainBerryFields::Test::AlwaysPass

Inherits:
Object
  • Object
show all
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

#code_to_test

Instance Method Summary collapse

Methods included from Strategy

#failure_message, for, #initialize, register, registered?, unregister

Instance Method Details

#pass?Boolean

Returns:

  • (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