Sha256: 4571cb1011d52539b903e849868d41dceb6d51d06af12738dcddcde7a8ca0384
Contents?: true
Size: 442 Bytes
Versions: 11
Compression:
Stored size: 442 Bytes
Contents
require 'spec_helper' # copyable needs its own set of tables and ActiveRecord models to test with. require_relative 'test_tables' Copyable::TestTables.create! require_relative 'test_models' # useful for starting off specs with a clean slate def undefine_copyable_in(klass) klass.instance_eval do define_method(:create_copy!) do |*args| raise "the create_copy! method has been wiped clean for testing purposes" end end end
Version data entries
11 entries across 11 versions & 1 rubygems