class EvalHelpersStringTest

Public Instance Methods

setup() click to toggle source
# File test/unit/eval_helpers_test.rb, line 94
def setup
  @object = Object.new
end
test_should_evaluate_string() click to toggle source
# File test/unit/eval_helpers_test.rb, line 98
def test_should_evaluate_string
  assert_equal 1, evaluate_method(@object, '1')
end
test_should_evaluate_string_within_object_context() click to toggle source
# File test/unit/eval_helpers_test.rb, line 102
def test_should_evaluate_string_within_object_context
  @object.instance_variable_set('@value', 1)
  assert_equal 1, evaluate_method(@object, '@value')
end
test_should_ignore_additional_arguments() click to toggle source
# File test/unit/eval_helpers_test.rb, line 107
def test_should_ignore_additional_arguments
  assert_equal 1, evaluate_method(@object, '1', 2, 3, 4)
end