Sha256: 1a7db62f040bc7b2400c31fca9e7640252b2ded17f2308b184dcfd1e78c9c1a9
Contents?: true
Size: 697 Bytes
Versions: 1
Compression:
Stored size: 697 Bytes
Contents
require 'bundler/setup' require 'minitest/autorun' require 'active_model_serializers' require 'fixtures/poro' require 'rails-controller-testing' Rails::Controller::Testing.install # Ensure backward compatibility with Minitest 4 Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) module TestHelper Routes = ActionDispatch::Routing::RouteSet.new Routes.draw do get ':controller(/:action(/:id))' get ':controller(/:action)' end ActionController::Base.send :include, Routes.url_helpers ActionController::Base.send :include, ActionController::Serialization end ActionController::TestCase.class_eval do def setup @routes = TestHelper::Routes end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.9.9 | test/test_helper.rb |