Closed
Description
The new optimizations look great, thanks!
I ran into a few errors from a fresh clone of the new code. Just in case you're not already aware of these:
1) Modis::Attribute :timestamp type is coerced
Failure/Error: expect(found.created_at.to_s).to eq(str_time)
expected: "2014-12-11 17:31:50 -0200"
got: "2014-12-11 11:31:50 -0800"
(compared using ==)
# ./spec/attribute_spec.rb:102:in `block (3 levels) in <top (required)>'
2) Modis::Attribute :hash type is coerced
Failure/Error: expect(found.hash).to eq(foo: :bar)
expected: {:foo=>:bar}
got: {"foo"=>"bar"}
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-:foo => :bar,
+"foo" => "bar",
# ./spec/attribute_spec.rb:149:in `block (3 levels) in <top (required)>'
3) Modis::Attribute variable type is coerced
Failure/Error: expect(found.string_or_hash).to eq(foo: :bar)
expected: {:foo=>:bar}
got: {"foo"=>"bar"}
(compared using ==)
Diff:
@@ -1,2 +1,2 @@
-:foo => :bar,
+"foo" => "bar",
# ./spec/attribute_spec.rb:162:in `block (3 levels) in <top (required)>'
Metadata
Metadata
Assignees
Labels
No labels