Skip to content

Commit b3f9da9

Browse files
sampatbadheeregon
authored andcommitted
update spec description to verify nil? on non nil object and remove duplicate spec to verify nil? for nil
1 parent fd9d4a1 commit b3f9da9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/kernel/nil_spec.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
require_relative 'fixtures/classes'
33

44
describe 'Kernel#nil?' do
5-
it 'returns false for other than nil' do
5+
it 'returns false' do
66
Object.should_not.nil?
77
Object.new.should_not.nil?
88
''.should_not.nil?
99
[].should_not.nil?
1010
{}.should_not.nil?
1111
end
12-
13-
it 'returns true for nil' do
14-
nil.should.nil?
15-
end
1612
end

0 commit comments

Comments
 (0)