Sha256: fb04b9f474080f3ab4fbf58feb294a6dc4f47c2cd3de65ad106e8de5cb4ff0f1
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
track_changes-0.5.0 | test/base_test.rb |
track_changes-0.4.1 | test/base_test.rb |
track_changes-0.4.0 | test/base_test.rb |
track_changes-0.3.2 | test/base_test.rb |