From 839d1ab21ca99914afb7e239f12bd7ffd1347435 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Mon, 21 Sep 2015 09:41:54 -0500 Subject: [PATCH] Remove dead code --- test/serializers/associations_test.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/serializers/associations_test.rb b/test/serializers/associations_test.rb index 75e2db20..a063e060 100644 --- a/test/serializers/associations_test.rb +++ b/test/serializers/associations_test.rb @@ -3,26 +3,6 @@ require 'test_helper' module ActiveModel class Serializer class AssociationsTest < Minitest::Test - class Model - def initialize(hash = {}) - @attributes = hash - end - - def read_attribute_for_serialization(name) - @attributes[name] - end - - def method_missing(meth, *args) - if meth.to_s =~ /^(.*)=$/ - @attributes[$1.to_sym] = args[0] - elsif @attributes.key?(meth) - @attributes[meth] - else - super - end - end - end - def setup @author = Author.new(name: 'Steve K.') @author.bio = nil