Sha256: 748fedd56b9db63e7746998fd06a611441b197d6f574b54f771ed8808d9f6ac9
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
require 'paperclip/matchers' require 'rspec/paper_trail/version' require 'rspec/paper_trail/extensions' module RSpec module Rails class Railtie < ::Rails::Railtie initializer 'paper_trail.rspec' do 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rspec-paper_trail-0.0.9 | lib/rspec/paper_trail.rb |