aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib/controller/fake_models.rb
diff options
context:
space:
mode:
authorThiago Pradi <thiago.pradi@gmail.com>2014-09-07 22:51:14 -0300
committerThiago Pradi <thiago.pradi@gmail.com>2014-09-07 22:51:14 -0300
commit90c06717bc675b602f281a29286871236f21d13e (patch)
tree18fffaa5548b93cf43d8cbfa2948a08c28e0a1d8 /actionpack/test/lib/controller/fake_models.rb
parent353b88135f14a928352d4cf2f5f8e4ddacbd9d4a (diff)
downloadrails-90c06717bc675b602f281a29286871236f21d13e.tar.gz
rails-90c06717bc675b602f281a29286871236f21d13e.tar.bz2
rails-90c06717bc675b602f281a29286871236f21d13e.zip
Removing unused fake models
Diffstat (limited to 'actionpack/test/lib/controller/fake_models.rb')
-rw-r--r--actionpack/test/lib/controller/fake_models.rb45
1 files changed, 0 insertions, 45 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb
index b8b51d86c2..ce9522d12a 100644
--- a/actionpack/test/lib/controller/fake_models.rb
+++ b/actionpack/test/lib/controller/fake_models.rb
@@ -28,30 +28,6 @@ class Customer < Struct.new(:name, :id)
end
end
-class ValidatedCustomer < Customer
- def errors
- if name =~ /Sikachu/i
- []
- else
- [{:name => "is invalid"}]
- end
- end
-end
-
-module Quiz
- class Question < Struct.new(:name, :id)
- extend ActiveModel::Naming
- include ActiveModel::Conversion
-
- def persisted?
- id.present?
- end
- end
-
- class Store < Question
- end
-end
-
class Post < Struct.new(:title, :author_name, :body, :secret, :persisted, :written_on, :cost)
extend ActiveModel::Naming
include ActiveModel::Conversion
@@ -95,24 +71,3 @@ class Comment
attr_accessor :body
end
-
-module Blog
- def self.use_relative_model_naming?
- true
- end
-
- class Post < Struct.new(:title, :id)
- extend ActiveModel::Naming
- include ActiveModel::Conversion
-
- def persisted?
- id.present?
- end
- end
-end
-
-class RenderJsonTestException < Exception
- def as_json(options = nil)
- { :error => self.class.name, :message => self.to_s }
- end
-end