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

Version Path
copyable-0.3.5 spec/helper/copyable_spec_helper.rb
copyable-0.3.3 spec/helper/copyable_spec_helper.rb
copyable-0.3.2 spec/helper/copyable_spec_helper.rb
copyable-0.3.1 spec/helper/copyable_spec_helper.rb
copyable-0.3.0 spec/helper/copyable_spec_helper.rb
copyable-0.2.0 spec/helper/copyable_spec_helper.rb
copyable-0.1.2 spec/helper/copyable_spec_helper.rb
copyable-0.1.1 spec/helper/copyable_spec_helper.rb
copyable-0.1.0 spec/helper/copyable_spec_helper.rb
copyable-0.0.2 spec/helper/copyable_spec_helper.rb
copyable-0.0.1 spec/helper/copyable_spec_helper.rb