Sha256: 00777e09af34a8d56778af3886bdf2e612f72ffb9f4f77fd61390395c151c6a5
Contents?: true
Size: 756 Bytes
Versions: 2
Compression:
Stored size: 756 Bytes
Contents
require "rubygems" require "bundler/setup" require 'simplecov' SimpleCov.start do add_group "lib", "lib" add_group "spec", "spec" end require 'coveralls' Coveralls.wear! 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.8.1 | test/test_helper.rb |
active_model_serializers-0.8.0 | test/test_helper.rb |