diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-22 16:11:54 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-22 16:11:54 -0700 |
commit | ca7207838844f02f50afbb18beb0f535903f7929 (patch) | |
tree | d116ce21039e3382989bd33a581f95990c91f424 /actionpack/test/lib/controller/fake_models.rb | |
parent | 98f856d7723bd8aa8ccc05dfb7219c897b4dcab7 (diff) | |
download | rails-ca7207838844f02f50afbb18beb0f535903f7929.tar.gz rails-ca7207838844f02f50afbb18beb0f535903f7929.tar.bz2 rails-ca7207838844f02f50afbb18beb0f535903f7929.zip |
Move fake controllers and models to a common load path
Diffstat (limited to 'actionpack/test/lib/controller/fake_models.rb')
-rw-r--r-- | actionpack/test/lib/controller/fake_models.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/actionpack/test/lib/controller/fake_models.rb b/actionpack/test/lib/controller/fake_models.rb new file mode 100644 index 0000000000..0b30c79b10 --- /dev/null +++ b/actionpack/test/lib/controller/fake_models.rb @@ -0,0 +1,19 @@ +class Customer < Struct.new(:name, :id) + def to_param + id.to_s + end +end + +class BadCustomer < Customer +end + +class GoodCustomer < Customer +end + +module Quiz + class Question < Struct.new(:name, :id) + def to_param + id.to_s + end + end +end |