Skip to content

How to Enable the Diff Based on a Tag #194

Description

@wbotelhos

I would like to execute the diff power only on specifics tests. Something like:

require 'super_diff/rspec-rails'

RSpec.configure do |config|
  config.around(:each, :diff) do |example|
    SuperDiff.inline! { example.run }    
  end
end
it 'works', :diff do
  expect({ done: true }).to eq({ done: false })
end

Is that possible? Thanks for the great gem!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions