spec/rspec/matchers/eq_spec.rb in rspec-expectations-2.11.2 vs spec/rspec/matchers/eq_spec.rb in rspec-expectations-2.11.3
- old
+ new
@@ -1,9 +1,13 @@
require 'spec_helper'
module RSpec
module Matchers
describe "eq" do
+ it_behaves_like "an RSpec matcher", :valid_value => 1, :invalid_value => 2 do
+ let(:matcher) { eq(1) }
+ end
+
it "is diffable" do
eq(1).should be_diffable
end
it "matches when actual == expected" do