diff options
author | Jim Myhrberg <contact@jimeh.me> | 2013-03-02 15:34:48 +0000 |
---|---|---|
committer | Jim Myhrberg <contact@jimeh.me> | 2013-03-02 15:35:14 +0000 |
commit | bbd542787d68cc777db36f016e5dc247a6714652 (patch) | |
tree | b48adbecc103d3b8662b7c8f9d8330a8c9a1c553 /spec | |
parent | bfba1a610172daa6b2eda15b917d2ca521149d27 (diff) | |
download | hashie-bbd542787d68cc777db36f016e5dc247a6714652.tar.gz |
Improve Hashie::Mash's #replace test slightly
Diffstat (limited to 'spec')
-rw-r--r-- | spec/hashie/mash_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/hashie/mash_spec.rb b/spec/hashie/mash_spec.rb index 63ec4e6..f55cc59 100644 --- a/spec/hashie/mash_spec.rb +++ b/spec/hashie/mash_spec.rb @@ -200,9 +200,9 @@ describe Hashie::Mash do it 'leaves only specified keys' do subject.keys.sort.should == ['details', 'middle_name'] subject.first_name?.should be_false - subject.first_name.should be_nil + subject.should_not respond_to(:first_name) subject.last_name?.should be_false - subject.last_name.should be_nil + subject.should_not respond_to(:last_name) end end |