lib/rspec/paper_trail.rb in rspec-paper_trail-0.0.9 vs lib/rspec/paper_trail.rb in rspec-paper_trail-0.0.10
- old
+ new
@@ -1,24 +1,22 @@
-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
+ initializer 'paper_trail.rspec_extensions' do
RSpec.configure do |config|
- config.include Paperclip::Shoulda::Matchers
- config.include Rspec::PaperTrailExtensions
+ config.include RSpec::PaperTrailExtensions
config.before(:each) do
- PaperTrail.enabled = false
- PaperTrail.controller_info = {}
- PaperTrail.whodunnit = nil
+ ::PaperTrail.enabled = false
+ ::PaperTrail.controller_info = {}
+ ::PaperTrail.whodunnit = nil
end
config.before(:each, versioning: true) do
- PaperTrail.enabled = true
+ ::PaperTrail.enabled = true
end
end
RSpec::Matchers.define :be_versioned do
match do |actual|