test/test_helper.rb in eeng-money-0.0.1 vs test/test_helper.rb in eeng-money-0.1.0
- old
+ new
@@ -1,17 +1,17 @@
-require 'test/unit'
+require 'minitest/autorun'
require 'active_record'
require "#{File.dirname(__FILE__)}/../lib/acts_as_money"
-ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
+ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
-class Test::Unit::TestCase #:nodoc:
+class Minitest::Test #:nodoc:
def setup
- ActiveRecord::Schema.define(:version => 1) do
+ 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
+ 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
\ No newline at end of file