public
Description: Allows you to enter a '$' in fields stored as decimal but are actually currency types
Homepage: http://www.faithfulgeek.org/2008/3/26/acts_as_currency-released
Clone URL: git://github.com/faithfulgeek/acts_as_currency.git
acts_as_currency / spec / spec_helper.rb
100644 9 lines (6 sloc) 0.376 kb
1
2
3
4
5
6
7
8
9
require File.dirname(__FILE__) + '/../../../../spec/spec_helper'
 
plugin_spec_dir = File.dirname(__FILE__)
ActiveRecord::Base.logger = Logger.new(plugin_spec_dir + "/debug.log")
 
databases = YAML::load(IO.read(plugin_spec_dir + "/db/database.yml"))
ActiveRecord::Base.establish_connection(databases[ENV["DB"] || "sqlite3"])
load(File.join(plugin_spec_dir, "db", "schema.rb"))