spec/rash_spec.rb in rash-0.1.0 vs spec/rash_spec.rb in rash-0.1.1
- old
+ new
@@ -14,11 +14,13 @@
"nested_three" => "three"
},
"nestedTwo" => {
"nested_two" => 22,
:nestedThree => 23
- }
+ },
+ "spaced Key" => "When would this happen?",
+ "trailing spaces " => "better safe than sorry"
})
}
it { should be_a(Hashie::Mash) }
@@ -33,9 +35,11 @@
subject.nested.two.should == "two"
subject.nested.nested_three.should == "three"
subject.nested_two.should be_a(Hashie::Rash)
subject.nested_two.nested_two.should == 22
subject.nested_two.nested_three.should == 23
+ subject.spaced_key.should == "When would this happen?"
+ subject.trailing_spaces.should == "better safe than sorry"
end
it "should allow camelCased accessors" do
subject.varOne.should == 1
subject.varOne = "once"