Move models and serializers in test to fixtures.rb file

This commit is contained in:
Santiago Pastorino
2013-07-03 15:35:56 -07:00
parent 0d3b56e9cf
commit a25c352525
7 changed files with 32 additions and 125 deletions

View File

@@ -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