Methods
- D
- I
- S
- T
-
- test_arbitrary_expression,
- test_array_of_expressions,
- test_array_of_expressions_identify_failure,
- test_array_of_expressions_identify_failure_when_message_provided,
- test_assert_difference,
- test_assert_difference_with_implicit_difference,
- test_assert_no_difference,
- test_expression_is_evaluated_in_the_appropriate_scope,
- test_negative_differences
Instance Public methods
decrement()
Link
default_test()
Link
increment()
Link
setup()
Link
test_arbitrary_expression()
Link
test_array_of_expressions()
Link
test_array_of_expressions_identify_failure()
Link
# File activesupport/test/test_test.rb, line 63 def test_array_of_expressions_identify_failure assert_difference ['@object.num', '1 + 1'] do @object.increment end fail 'should not get to here' rescue Exception => e assert_match(/didn't change by/, e.message) assert_match(/expected but was/, e.message) end
test_array_of_expressions_identify_failure_when_message_provided()
Link
# File activesupport/test/test_test.rb, line 73 def test_array_of_expressions_identify_failure_when_message_provided assert_difference ['@object.num', '1 + 1'], 1, 'something went wrong' do @object.increment end fail 'should not get to here' rescue Exception => e assert_match(/something went wrong/, e.message) assert_match(/didn't change by/, e.message) assert_match(/expected but was/, e.message) end
test_assert_difference()
Link
test_assert_difference_with_implicit_difference()
Link
test_assert_no_difference()
Link
test_expression_is_evaluated_in_the_appropriate_scope()
Link