test/twin/twin_test.rb in disposable-0.4.2 vs test/twin/twin_test.rb in disposable-0.4.3

- old
+ new

@@ -136,5 +136,19 @@ end end end # TODO: test coercion! + +class AccessorsTest < Minitest::Spec + Song = Struct.new(:format) + + class Twin < Disposable::Twin + property :format # Kernel#format + end + + it do + twin = Twin.new(Song.new("bla")) + twin.format.must_equal "bla" + twin.format = "blubb" + end +end