mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Move models and serializers in test to fixtures.rb file
This commit is contained in:
@@ -4,19 +4,6 @@ require 'newbase/active_model/serializer'
|
||||
module ActiveModel
|
||||
class Serializer
|
||||
class ScopeTest < ActiveModel::TestCase
|
||||
class Model
|
||||
def initialize(hash={})
|
||||
@attributes = hash
|
||||
end
|
||||
|
||||
def read_attribute_for_serialization(name)
|
||||
@attributes[name]
|
||||
end
|
||||
end
|
||||
|
||||
class ModelSerializer < ActiveModel::Serializer
|
||||
end
|
||||
|
||||
def setup
|
||||
@serializer = ModelSerializer.new(nil, scope: current_user)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user