mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Remove Rails dependency
Move configuration into a Railtie. Only dependency is now activemodel
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
require 'rails'
|
||||
require 'test_helper'
|
||||
|
||||
class Foo < Rails::Application
|
||||
end
|
||||
|
||||
@@ -39,6 +39,8 @@ class RenderJsonTest < ActionController::TestCase
|
||||
end
|
||||
|
||||
class TestController < ActionController::Base
|
||||
include ActionController::Serialization
|
||||
|
||||
protect_from_forgery
|
||||
|
||||
serialization_scope :current_user
|
||||
@@ -169,4 +171,4 @@ class RenderJsonTest < ActionController::TestCase
|
||||
get :render_json_with_serializer_api_but_without_serializer
|
||||
assert_match '{"serializable_object":true}', @response.body
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -21,4 +21,4 @@ ActiveSupport::TestCase.class_eval do
|
||||
setup do
|
||||
@routes = ::TestHelper::Routes
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user