Sha256: 280cfe9d5054089864d39e76e7107f9a8b46d29879580869970571cceea5707b

Contents?: true

Size: 713 Bytes

Versions: 14

Compression:

Stored size: 713 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../test/dummy/config/environment.rb',  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path('../../test/dummy/db/migrate', __FILE__)]
require 'rails/test_help'

# Require PushType testing setup
require 'push_type/testing/setup'
require 'push_type/testing/factories'

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

class ActionController::TestCase
  before :all do
    @routes = PushType::Api::Engine.routes
    @request.headers['Accept']        = 'application/json'
    @request.headers['Content-Type']  = 'application/json'
  end

  def json_response
    JSON.parse(response.body)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
push_type_api-0.12.1 test/test_helper.rb
push_type_api-0.12.0 test/test_helper.rb
push_type_api-0.12.0.beta.1 test/test_helper.rb
push_type_api-0.11.2 test/test_helper.rb
push_type_api-0.11.1 test/test_helper.rb
push_type_api-0.11.0.beta.2 test/test_helper.rb
push_type_api-0.11.0.beta.1 test/test_helper.rb
push_type_api-0.10.4 test/test_helper.rb
push_type_api-0.10.3 test/test_helper.rb
push_type_api-0.10.2 test/test_helper.rb
push_type_api-0.10.1 test/test_helper.rb
push_type_api-0.10.0 test/test_helper.rb
push_type_api-0.10.0.beta.5 test/test_helper.rb
push_type_api-0.10.0.beta.3 test/test_helper.rb