diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-12-21 22:36:31 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2014-12-21 22:36:31 -0500 |
commit | d402b15d39e7b0a746eac18118cddfa751e9f4c9 (patch) | |
tree | 9387c18035c3ee8da16270031198f874e8e551d8 /actionview | |
parent | e21bd333199888aa76112298735dbb9988a2d72d (diff) | |
parent | 7375c17114cd3782aae0bfa08d36a8ed816c2ff5 (diff) | |
download | rails-d402b15d39e7b0a746eac18118cddfa751e9f4c9.tar.gz rails-d402b15d39e7b0a746eac18118cddfa751e9f4c9.tar.bz2 rails-d402b15d39e7b0a746eac18118cddfa751e9f4c9.zip |
Merge pull request #18129 from claudiob/remove-unused-sheep-fixture-from-action-view
Remove unused Sheep fixture from AV
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/lib/controller/fake_models.rb | 13 | ||||
-rw-r--r-- | actionview/test/template/record_identifier_test.rb | 1 |
2 files changed, 0 insertions, 14 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 diff --git a/actionview/test/template/record_identifier_test.rb b/actionview/test/template/record_identifier_test.rb index 22038110a5..f8ee563469 100644 --- a/actionview/test/template/record_identifier_test.rb +++ b/actionview/test/template/record_identifier_test.rb @@ -9,7 +9,6 @@ class RecordIdentifierTest < ActiveSupport::TestCase @record = @klass.new @singular = 'comment' @plural = 'comments' - @uncountable = Sheep end def test_dom_id_with_new_record |