Sha256: d3e8cc3c3fc0c514829f667e616ff39a0f4a48ef28e43de0d93f41c91e77a197

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

if defined? RSpec
  require 'approvals/extensions/rspec/dsl'
  require 'approvals/namers/rspec_namer'
  require 'approvals/namers/directory_namer'

  RSpec.configure do |c|
    c.include Approvals::RSpec::DSL
    c.add_setting :approvals_path, :default => 'spec/fixtures/approvals/'
    c.add_setting :approvals_namer_class, :default => Approvals::Namers::DirectoryNamer
    c.add_setting :diff_on_approval_failure, :default => false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
approvals-0.0.11 lib/approvals/extensions/rspec.rb
approvals-0.0.10 lib/approvals/extensions/rspec.rb