summaryrefslogtreecommitdiff
path: root/spec/hashie/extensions/indifferent_access_spec.rb
diff options
context:
space:
mode:
authordblock <dblock@dblock.org>2014-06-03 09:35:55 -0700
committerdblock <dblock@dblock.org>2014-06-03 09:35:55 -0700
commit2c8d5d56ed8cceba6a37e0bd09af6c5b54d8c851 (patch)
tree9020a2ad54fd8f27712e88c957bdb6235eb2232b /spec/hashie/extensions/indifferent_access_spec.rb
parent41e6c676e15bc4c8333202bd49373c88ec1129f6 (diff)
downloadhashie-2c8d5d56ed8cceba6a37e0bd09af6c5b54d8c851.tar.gz
Upgraded to RSpec 3.0.
Diffstat (limited to 'spec/hashie/extensions/indifferent_access_spec.rb')
-rw-r--r--spec/hashie/extensions/indifferent_access_spec.rb4
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'