spec/unit/render/extensions/dottable_hash_spec.rb in render-0.1.2 vs spec/unit/render/extensions/dottable_hash_spec.rb in render-0.1.3
- old
+ new
@@ -18,17 +18,17 @@
dottable_hash[:foo].class.should == DottableHash
end
it "converts all keys to symbols" do
dottable_hash = DottableHash.new({ "foo" => { "bar" => "baz" } })
- dottable_hash.keys.include?(:foo).should be_true
+ dottable_hash.keys.include?(:foo).should eq(true)
end
end
describe "#[]" do
it "converts keys to strings" do
@dottable_hash[:foo] = "bar"
- @dottable_hash.keys.include?(:foo).should be_true
+ @dottable_hash.keys.include?(:foo).should eq(true)
end
it "converts hash values to dottable_hashs" do
@dottable_hash[:foo] = { bar: { baz: "baz" } }
@dottable_hash.foo.bar.class.should == DottableHash