Skip to content

How to Enable the Diff Based on a Tag #194

@wbotelhos

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!

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