test/test_resource.rb in whatser-0.2.0 vs test/test_resource.rb in whatser-0.3.0
- old
+ new
@@ -64,9 +64,14 @@
option = Whatser::Poi
mod = Whatser::Resource.from_hash_to_model(hash, option)
assert mod.is_a?(Whatser::Poi)
end
+ def test_from_hash_to_model_with_string
+ mod = Whatser::Resource.from_hash_to_model('freetextstringtest')
+ assert mod.is_a?(Whatser::Resource)
+ end
+
def test_from_hash_to_model_empty
mod = Whatser::Resource.from_hash_to_model(nil)
assert mod.is_a?(Whatser::Resource)
end
end
\ No newline at end of file