Sha256: de4dd9410334ba4e4b70a8a425619515240d01a4c14f181ea3d6d87dad2ae4d0

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

RSpec.configure do |config|
  config.include Paperclip::Shoulda::Matchers
  config.include Rspec::PaperTrailExtensions

  config.before(:each) do
    PaperTrail.enabled = false
    PaperTrail.controller_info = {}
    PaperTrail.whodunnit = nil
  end

  config.before(:each, versioning: true) do
    PaperTrail.enabled = true
  end
end

RSpec::Matchers.define :be_versioned do
  match do |actual|
    actual.respond_to?(:versions)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-paper_trail-0.0.8 lib/generators/rspec/paper_trail/templates/spec/support/rspec-paper_trail.rb
rspec-paper_trail-0.0.7 lib/generators/rspec/paper_trail/templates/spec/support/rspec-paper_trail.rb