spec/lib/brightcontent/pages/path_constraint_spec.rb in brightcontent-pages-2.4.6 vs spec/lib/brightcontent/pages/path_constraint_spec.rb in brightcontent-pages-2.5.0
- old
+ new
@@ -16,14 +16,14 @@
allow(Page).to receive(:pluck) { ['existing'] }
end
it 'returns true if path is existing' do
request = double(:request, path: '/existing')
- expect(subject.matches?(request)).to be_true
+ expect(subject.matches?(request)).to eq true
end
it 'returns false if path is non-existing' do
request = double(:request, path: '/nonexisting')
- expect(subject.matches?(request)).to be_false
+ expect(subject.matches?(request)).to eq false
end
end
end
end
end