Sha256: 0741e8cf07ae6c4fd588bd2463e5f29e77195d4a297e3cb40678321eb9122ae6
Contents?: true
Size: 457 Bytes
Versions: 15
Compression:
Stored size: 457 Bytes
Contents
if defined? RSpec require 'rspec/core' require 'rspec/matchers' RSpec.configure do |config| config.before(:each) do ::Draftsman.whodunnit = nil ::Draftsman.controller_info = {} if defined?(::Rails) && defined?(::RSpec::Rails) end end RSpec::Matchers.define :be_draftable do # check to see if the model has `has_drafts` declared on it match { |actual| actual.kind_of?(::Draftsman::Model::InstanceMethods) } end end
Version data entries
15 entries across 15 versions & 1 rubygems