Sha256: 47af46d1a8242c972846b5dd8b46b1120780a907763cb6bfb16066799d038f53
Contents?: true
Size: 730 Bytes
Versions: 8
Compression:
Stored size: 730 Bytes
Contents
Feature: define diffable matcher When a matcher is defined as diffable, and the --diff flag is set, the output will include a diff of the submitted objects. @wip Scenario: define a diffable matcher Given a file named "diffable_matcher_spec.rb" with: """ RSpec::Matchers.define :be_just_like do |expected| match do |actual| actual == expected end diffable end describe "this" do it {should be_just_like("that")} end """ When I run "rspec ./diffable_matcher_spec.rb --diff" Then the exit status should not be 0 And I should see "should be just like that" And I should see "Diff:\n@@ -1,2 +1,2 @@\n-that\n+this"
Version data entries
8 entries across 8 versions & 1 rubygems