diff options
Diffstat (limited to 'spec/hashie/extensions/indifferent_access_spec.rb')
-rw-r--r-- | spec/hashie/extensions/indifferent_access_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/hashie/extensions/indifferent_access_spec.rb b/spec/hashie/extensions/indifferent_access_spec.rb index d50f083..8ae982d 100644 --- a/spec/hashie/extensions/indifferent_access_spec.rb +++ b/spec/hashie/extensions/indifferent_access_spec.rb @@ -103,12 +103,12 @@ describe Hashie::Extensions::IndifferentAccess do it 'removes old keys' do [:foo, 'foo'].each do |k| expect(h[k]).to be_nil - expect(h.key?(k)).to be_false + expect(h.key?(k)).to be_falsy end end it 'creates new keys with indifferent access' do - [:bar, 'bar', :hi, 'hi'].each { |k| expect(h.key?(k)).to be_true } + [:bar, 'bar', :hi, 'hi'].each { |k| expect(h.key?(k)).to be_truthy } expect(h[:bar]).to eq 'baz' expect(h['bar']).to eq 'baz' expect(h[:hi]).to eq 'bye' |