Sha256: 90965e2bc571b26095ede5b5e683f4db9a98ee36d11ba2d5cbfcf4939fcb9ca9
Contents?: true
Size: 608 Bytes
Versions: 6
Compression:
Stored size: 608 Bytes
Contents
require 'test_helper' class ClassMethodsTest < Test::Unit::TestCase include TrackChanges::ClassMethods context "a ClassMethods module" do context "when track_changes_to method called" do setup { track_changes_to(:something) {} } should "call append_before_filter" do assert @before_filter end should "call append_after_filter" do assert @after_filter end end end protected def append_before_filter(options = {}, &block) @before_filter = block end def append_after_filter(options = {}, &block) @after_filter = block end end
Version data entries
6 entries across 6 versions & 2 rubygems