Sha256: e0f31550cde494384a297640c23b2d8ba9cdee91b21ea9b7104d85f4c25d08c1

Contents?: true

Size: 1020 Bytes

Versions: 7

Compression:

Stored size: 1020 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_controller')
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

7 entries across 7 versions & 4 rubygems

Version Path
captproton-restfulx-1.2.3 test/rails/helpers/functional_test_helper.rb
dima-restfulx-1.2.3 test/rails/helpers/functional_test_helper.rb
dima-restfulx-1.2.4 test/rails/helpers/functional_test_helper.rb
rlmattax-restfulx-1.2.4.1 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.5 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.3 test/rails/helpers/functional_test_helper.rb
restfulx-1.2.4 test/rails/helpers/functional_test_helper.rb