Sha256: 63042d510a3826019284ccc0d3df1ec0bfa12518160088e19053e59beb096b19
Contents?: true
Size: 795 Bytes
Versions: 5
Compression:
Stored size: 795 Bytes
Contents
Feature: negating a matcher Scenario: when the matcher is negated Given a file named "example_spec.rb" with: """ruby describe "testing equality" do it "is the same as negated inequality" do expect(1).to negate(eq(2)) end end """ When I run rspec Then the examples should all pass Scenario: failures are correctly reported Given a file named "example_spec.rb" with: """ruby describe "testing equality" do it "fails if the the negated matcher does match" do expect(1).to negate(eq(1)) end end """ When I run rspec Then the output should contain "Failure/Error: expect(1).to negate(eq(1))" And the output should contain "expected: value != 1"
Version data entries
5 entries across 5 versions & 1 rubygems