test/excon/resource_object_test.rb in excon-hypermedia-0.5.1 vs test/excon/resource_object_test.rb in excon-hypermedia-0.5.2
- old
+ new
@@ -43,7 +43,11 @@
assert_equal 'universe', resource.uid
assert_equal 'world', resource.hello
assert_equal 'world', resource['hello']
assert_equal nil, resource['invalid']
end
+
+ def test_correctly_raising_no_method_error
+ assert_raises(NoMethodError) { resource.invalid }
+ end
end
end