spec/grape/path_spec.rb in grape-1.3.1 vs spec/grape/path_spec.rb in grape-1.3.2
- old
+ new
@@ -85,16 +85,16 @@
end
describe '#namespace?' do
it 'is false when the namespace is nil' do
path = Path.new(anything, nil, anything)
- expect(path.namespace?).to be nil
+ expect(path.namespace?).to be_falsey
end
it 'is false when the namespace starts with whitespace' do
path = Path.new(anything, ' /foo', anything)
- expect(path.namespace?).to be nil
+ expect(path.namespace?).to be_falsey
end
it 'is false when the namespace is the root path' do
path = Path.new(anything, '/', anything)
expect(path.namespace?).to be false
@@ -107,15 +107,15 @@
end
describe '#path?' do
it 'is false when the path is nil' do
path = Path.new(nil, anything, anything)
- expect(path.path?).to be nil
+ expect(path.path?).to be_falsey
end
it 'is false when the path starts with whitespace' do
path = Path.new(' /foo', anything, anything)
- expect(path.path?).to be nil
+ expect(path.path?).to be_falsey
end
it 'is false when the path is the root path' do
path = Path.new('/', anything, anything)
expect(path.path?).to be false