Sha256: a3429b02063d107070b1ee537835157c75b5e95c88434613da3c394f6cd28ec9
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
require 'test/unit' require 'active_record' require "#{File.dirname(__FILE__)}/../lib/acts_as_money" ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:") class Test::Unit::TestCase #: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.0.1 | test/test_helper.rb |