spec/hashie/extensions/indifferent_access_spec.rb in hashie-2.1.2 vs spec/hashie/extensions/indifferent_access_spec.rb in hashie-3.0.0

- old
+ new

@@ -101,15 +101,15 @@ end 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' expect(h['hi']).to eq 'bye' end