aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/randomly_named_c1.rb
diff options
context:
space:
mode:
authorAlexey Muranov <muranov@math.univ-toulouse.fr>2011-12-19 16:00:24 +0100
committerAlexey Muranov <alexey.muranov@gmail.com>2011-12-30 10:34:01 +0100
commit6468ff41971b69be9c02f33d05e94e4f8845266b (patch)
treecb50681bb59422a3ff346177b4cdc281ce68ca55 /activerecord/test/models/randomly_named_c1.rb
parente43b2b35c7042c87fd18e3ecd55c14eabd5746ba (diff)
downloadrails-6468ff41971b69be9c02f33d05e94e4f8845266b.tar.gz
rails-6468ff41971b69be9c02f33d05e94e4f8845266b.tar.bz2
rails-6468ff41971b69be9c02f33d05e94e4f8845266b.zip
Test fixtures with custom model and table names
Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead. It is expected that the table name be defined in the model, but this is not explicitly tested here. This will need to be fixed.
Diffstat (limited to 'activerecord/test/models/randomly_named_c1.rb')
-rw-r--r--activerecord/test/models/randomly_named_c1.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/randomly_named_c1.rb b/activerecord/test/models/randomly_named_c1.rb
new file mode 100644
index 0000000000..18a86c4989
--- /dev/null
+++ b/activerecord/test/models/randomly_named_c1.rb
@@ -0,0 +1,3 @@
+class ClassNameThatDoesNotFollowCONVENTIONS < ActiveRecord::Base
+ self.table_name = :randomly_named_table
+end