Sha256: cb4887394c039d3c91b9834ee0c6286defc21a3a8908f73a1d9b89885683af53

Contents?: true

Size: 1009 Bytes

Versions: 12

Compression:

Stored size: 1009 Bytes

Contents

$:.unshift(File.dirname(__FILE__) + '/../..')
$:.unshift(File.dirname(__FILE__) + '/../../lib')
schema_file = File.join(File.dirname(__FILE__), '..', 'schema.rb')
ENV["RAILS_ENV"] = "test"

require File.join(File.dirname(__FILE__), '..', 'controllers', 'application')
require File.join(File.dirname(__FILE__), '..', 'controllers', 'notes_controller')

config = YAML::load(IO.read(File.join(File.dirname(__FILE__), '..', 'database.yml')))['test']
puts "config:\n#{config.inspect}"
ActiveRecord::Base.configurations = config
ActiveRecord::Base.establish_connection(config)

ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/models.log")
ActionController::Base.logger = Logger.new(File.dirname(__FILE__) + "/controllers.log")
ApplicationController.append_view_path File.join(File.dirname(__FILE__), '..', 'views')

load(schema_file) if File.exist?(schema_file)

Test::Unit::TestCase.fixture_path = File.join(File.dirname(__FILE__), '..', 'fixtures')
$:.unshift(Test::Unit::TestCase.fixture_path)

Version data entries

12 entries across 12 versions & 4 rubygems

Version Path
dima-restfulx-1.2.0 test/rails/helpers/functional_test_helper.rb
dima-restfulx-1.2.1 test/rails/helpers/functional_test_helper.rb
dima-restfulx-1.2.2 test/rails/helpers/functional_test_helper.rb
dima-ruboss4ruby-1.1.0 test/rails/helpers/functional_test_helper.rb
dima-ruboss4ruby-1.1.1 test/rails/helpers/functional_test_helper.rb
dima-ruboss4ruby-1.1.2 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.0 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.2 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.1 test/rails/helpers/functional_test_helper.rb
ruboss4ruby-1.1.2 test/rails/helpers/functional_test_helper.rb
ruboss4ruby-1.1.0 test/rails/helpers/functional_test_helper.rb
ruboss4ruby-1.1.1 test/rails/helpers/functional_test_helper.rb