spec/rspec/matchers/eq_spec.rb in rspec-expectations-2.14.5 vs spec/rspec/matchers/eq_spec.rb in rspec-expectations-2.99.0.beta1
- old
+ new
@@ -26,10 +26,10 @@
called = true
end
end.new
expect(actual).to eq :anything # to trigger the matches? method
- expect(called).to be_true
+ expect(called).to be_truthy
end
it "describes itself" do
matcher = eq(1)
matcher.matches?(1)