test/support_test.rb in link2-0.1.6 vs test/support_test.rb in link2-0.1.7
- old
+ new
@@ -17,13 +17,14 @@
assert_not_equal ::Fraggle, ::Link2::Support.find_resource_class(::Unicorn.new)
assert_not_equal ::Fraggle, ::Link2::Support.find_resource_class(:unicorn)
end
test "#resource_identifier_class?: should only be true for valid classes" do
- assert ::Link2::Support.resource_identifier_class?(nil)
assert ::Link2::Support.resource_identifier_class?(:hello)
assert ::Link2::Support.resource_identifier_class?(::Fraggle)
+ assert ::Link2::Support.resource_identifier_class?(::Fraggle.new)
+ assert_not ::Link2::Support.resource_identifier_class?(nil)
assert_not ::Link2::Support.resource_identifier_class?(::Unicorn)
end
test "#record_collection?: should be true only i passed value is array of record objects of same kind" do
assert_not ::Link2::Support.record_collection?([])
\ No newline at end of file