diff options
author | claudiob <claudiob@gmail.com> | 2014-12-20 11:23:47 -0800 |
---|---|---|
committer | claudiob <claudiob@gmail.com> | 2014-12-22 04:02:35 +0100 |
commit | 7375c17114cd3782aae0bfa08d36a8ed816c2ff5 (patch) | |
tree | 9387c18035c3ee8da16270031198f874e8e551d8 /actionview/test/lib | |
parent | e21bd333199888aa76112298735dbb9988a2d72d (diff) | |
download | rails-7375c17114cd3782aae0bfa08d36a8ed816c2ff5.tar.gz rails-7375c17114cd3782aae0bfa08d36a8ed816c2ff5.tar.bz2 rails-7375c17114cd3782aae0bfa08d36a8ed816c2ff5.zip |
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
Diffstat (limited to 'actionview/test/lib')
-rw-r--r-- | actionview/test/lib/controller/fake_models.rb | 13 |
1 files changed, 0 insertions, 13 deletions
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 |