require 'test_helper' class BaseTest < Test::Unit::TestCase context "when TrackChanges is included in a Class" do setup do class A include TrackChanges end end should "include InstanceMethods" do assert A.included_modules.include?(TrackChanges::InstanceMethods) end should "extend class with ClassMethods" do extended_modules = (class << A; self; end).included_modules assert extended_modules.include?(TrackChanges::ClassMethods) end end end