Sha256: ac0a6ff0a51b5e8f0981c519b2dd327d4cc392b6ba638db9ee473b50b5406c93
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 Bytes
Contents
require "rubygems" require "bundler/setup" unless ENV["TRAVIS"] require 'simplecov' SimpleCov.start do add_group "lib", "lib" add_group "spec", "spec" end end require "pry" require "active_model_serializers" require "active_support/json" require "test/unit" require 'rails' module TestHelper Routes = ActionDispatch::Routing::RouteSet.new Routes.draw do resource :hypermedia match ':controller(/:action(/:id))' match ':controller(/:action)' end ActionController::Base.send :include, Routes.url_helpers ActiveModel::Serializer.send :include, Routes.url_helpers end ActiveSupport::TestCase.class_eval do setup do @routes = ::TestHelper::Routes end end class Object undef_method :id if respond_to?(:id) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.5.2 | test/test_helper.rb |
active_model_serializers-0.5.1 | test/test_helper.rb |