Sha256: 69a25dafed9b25b461db559cc343d8462d40c3fd16d5af928d8685e44293f547
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require 'minitest/autorun' require 'active_record' require "#{File.dirname(__FILE__)}/../lib/acts_as_money" ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:") class Minitest::Test #:nodoc: def setup ActiveRecord::Schema.define(version: 1) do create_table :products do |t| t.column :price, :decimal, precision: 12, scale: 2 t.column :tax, :decimal, precision: 12, scale: 2 t.column :discount, :decimal, precision: 12, scale: 3 end end end def teardown ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Base.connection.drop_table(table) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eeng-money-0.1.0 | test/test_helper.rb |