test/structure_test.rb in structure-0.20.0 vs test/structure_test.rb in structure-0.20.1
- old
+ new
@@ -35,9 +35,10 @@
assert_respond_to Person.new, :name=
end
def test_key_errors
assert_raise(NameError) { Person.key :class }
+ assert_raise(TypeError) { Person.key :foo, String, 1 }
end
def test_key_defaults
assert_equal [], Person.new.friends
end