spec/rash_spec.rb in rash-0.3.0 vs spec/rash_spec.rb in rash-0.3.1
- old
+ new
@@ -16,11 +16,12 @@
"nestedTwo" => {
"nested_two" => 22,
:nestedThree => 23
},
"spaced Key" => "When would this happen?",
- "trailing spaces " => "better safe than sorry"
+ "trailing spaces " => "better safe than sorry",
+ "extra spaces" => "hopefully this never happens"
})
}
it { should be_a(Hashie::Mash) }
@@ -37,9 +38,10 @@
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"
+ subject.extra_spaces.should == "hopefully this never happens"
end
it "should allow camelCased accessors" do
subject.varOne.should == 1
subject.varOne = "once"