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