test/hash_test.rb in representable-1.2.7 vs test/hash_test.rb in representable-1.2.8
- old
+ new
@@ -112,6 +112,25 @@
{"name" => "Three Way Dance", "track" => 5}]).must_equal Album.new([Song.new("One Shot Deal", 4), Song.new("Three Way Dance", 5)])
end
end
end
end
+
+
+ class DefinitionTest < MiniTest::Spec
+ it "what" do
+ class Representable::Hash::Binding < SimpleDelegator
+
+ end
+
+ definition = Representable::Definition.new(:name)
+ wrapped = Representable::Hash::Binding.new(definition)
+
+ wrapped.name.must_equal "name"
+ wrapped.hash?.must_equal nil
+ wrapped.array?.must_equal nil
+ wrapped.options.must_equal({})
+
+ #wrapped.
+ end
+ end
end
\ No newline at end of file