Sha256: 5994830d9b4be915db7c8e9378ccbb0a568e0377d5933a0f69175493d197b96c

Contents?: true

Size: 788 Bytes

Versions: 25

Compression:

Stored size: 788 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
plugin_test_dir = File.dirname(__FILE__)

require 'rubygems'
require 'multi_rails_init'
require 'active_record' 
require 'action_view'
require 'test/unit'
require 'mocha'
require 'shoulda/rails'

require 'attribute_fu'
require 'attribute_fu/associations'
require 'attribute_fu/associated_form_helper'
require plugin_test_dir + '/../init.rb'

ActiveRecord::Base.logger = Logger.new(plugin_test_dir + "/debug.log")

ActiveRecord::Base.configurations = YAML::load(IO.read(plugin_test_dir + "/db/database.yml"))
ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem")
ActiveRecord::Migration.verbose = false
load(File.join(plugin_test_dir, "db", "schema.rb"))

Dir["#{plugin_test_dir}/models/*.rb"].each {|file| require file }

Version data entries

25 entries across 25 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.11.4 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.11.3 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.11.2 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.11.1 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.11.0 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.10.2 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.10.1 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.10.0 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.10.0.beta vendor/plugins/attribute_fu/test/test_helper.rb
spree-enriquez-0.9.4 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.9.4 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.9.3 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.9.2 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.9.1 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.9.0 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.8.4 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.8.5 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.6.0 vendor/plugins/attribute_fu/test/test_helper.rb
spree-0.7.0 vendor/plugins/attribute_fu/test/test_helper.rb