Sha256: 4a279f9ce4361ade03b5a75fb0257bcb0afc8016dbfafaf0e5579fa75c492da7

Contents?: true

Size: 1.31 KB

Versions: 35

Compression:

Stored size: 1.31 KB

Contents

ENV["RAILS_ENV"] = "test"
$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__) + '/../../activesupport/lib')
$:.unshift(File.dirname(__FILE__) + '/../../actionpack/lib')
$:.unshift(File.dirname(__FILE__) + '/../../activerecord/lib')

require 'test/unit'
require 'action_web_service'
require 'action_controller'
require 'action_controller/test_process'

# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true


ActionController::Base.logger = Logger.new("debug.log")
ActionController::Base.ignore_missing_templates = true

begin
  PATH_TO_AR = File.dirname(__FILE__) + '/../../activerecord'
  require "#{PATH_TO_AR}/lib/active_record" unless Object.const_defined?(:ActiveRecord)
  require "#{PATH_TO_AR}/lib/active_record/fixtures" unless Object.const_defined?(:Fixtures)
rescue LoadError => e
  fail "\nFailed to load activerecord: #{e}"
end

ActiveRecord::Base.configurations = {
  'mysql' => {
    :adapter  => "mysql",
    :username => "rails",
    :encoding => "utf8",
    :database => "actionwebservice_unittest"
  }
}

ActiveRecord::Base.establish_connection 'mysql'

Test::Unit::TestCase.fixture_path = "#{File.dirname(__FILE__)}/fixtures/"

# restore default raw_post functionality
class ActionController::TestRequest
  def raw_post
    super
  end
end

Version data entries

35 entries across 35 versions & 6 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionwebservice/test/abstract_unit.rb
actionwebservice-1.2.2 test/abstract_unit.rb
actionwebservice-1.2.3 test/abstract_unit.rb
actionwebservice-1.2.0 test/abstract_unit.rb
actionwebservice-1.2.1 test/abstract_unit.rb
actionwebservice-1.2.5 test/abstract_unit.rb
actionwebservice-1.2.6 test/abstract_unit.rb
actionwebservice-1.2.4 test/abstract_unit.rb
backlog-0.0.0 vendor/rails/actionwebservice/test/abstract_unit.rb
backlog-0.0.1 vendor/rails/actionwebservice/test/abstract_unit.rb
backlog-0.0.2 vendor/rails/actionwebservice/test/abstract_unit.rb
backlog-0.0.4 vendor/rails/actionwebservice/test/abstract_unit.rb
radiant-0.6.1 vendor/rails/actionwebservice/test/abstract_unit.rb