Sha256: d3084715fddf1f851af77f77b27ddf0d1ca2355d946d313d2c9a04e8fd158b2c
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
require "rubygems" require "bundler/setup" 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 get ':controller(/:action(/:id))' get ':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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.8.2 | test/test_helper.rb |