summaryrefslogtreecommitdiff
path: root/spec/ruby/core/hash/any_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/hash/any_spec.rb')
-rw-r--r--spec/ruby/core/hash/any_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/hash/any_spec.rb b/spec/ruby/core/hash/any_spec.rb
index ab8d320c18..c26dfabde6 100644
--- a/spec/ruby/core/hash/any_spec.rb
+++ b/spec/ruby/core/hash/any_spec.rb
@@ -1,13 +1,13 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
describe "Hash#any?" do
describe 'with no block given' do
it "checks if there are any members of a Hash" do
empty_hash = {}
- empty_hash.any?.should == false
+ empty_hash.should_not.any?
hash_with_members = { 'key' => 'value' }
- hash_with_members.any?.should == true
+ hash_with_members.should.any?
end
end