Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ARModel
- before_destroy :do_stuff
- def do_stuff
- true
- end
- end
- def test_should_call_do_stuff_before_destroy
- assert_equal true, ARModel.before_destroy.include?(:do_stuff)
- end
- def test_do_stuff_returns_true
- assert_equal true, ARModel.new.do_stuff
- end
Add Comment
Please, Sign In to add comment