test/twin/twin_test.rb in disposable-0.4.5 vs test/twin/twin_test.rb in disposable-0.4.6

- old
+ new

@@ -150,5 +150,15 @@ twin = Twin.new(Song.new("bla")) twin.format.must_equal "bla" twin.format = "blubb" end end + +class InvalidPropertyNameTest < Minitest::Spec + it 'raises InvalidPropertyNameError' do + assert_raises(Disposable::Twin::InvalidPropertyNameError) { + class Twin < Disposable::Twin + property :class + end + } + end +end