From 7375c17114cd3782aae0bfa08d36a8ed816c2ff5 Mon Sep 17 00:00:00 2001 From: claudiob Date: Sat, 20 Dec 2014 11:23:47 -0800 Subject: Remove unused Sheep fixture from AV The `Sheep` fixture was added in eb23754e when moving template tests from actionpack to actionview, but it's not actually used in ActionView tests. The `Sheep` fixture is only used to test `uncountable` in ActiveModel tests, and is already defined in activemodel/test/models/sheep.rb --- actionview/test/lib/controller/fake_models.rb | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'actionview/test/lib/controller/fake_models.rb') diff --git a/actionview/test/lib/controller/fake_models.rb b/actionview/test/lib/controller/fake_models.rb index a463a08bb6..cb02a56cb4 100644 --- a/actionview/test/lib/controller/fake_models.rb +++ b/actionview/test/lib/controller/fake_models.rb @@ -111,19 +111,6 @@ class CommentRelevance end end -class Sheep - extend ActiveModel::Naming - include ActiveModel::Conversion - - attr_reader :id - def to_key; id ? [id] : nil end - def save; @id = 1 end - def new_record?; @id.nil? end - def name - @id.nil? ? 'new sheep' : "sheep ##{@id}" - end -end - class TagRelevance extend ActiveModel::Naming include ActiveModel::Conversion -- cgit v1.2.3