public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
use camelize instead of capitalize in fixture validator
trevorturk (author)
Sun Sep 21 15:44:53 -0700 2008
commit  d5f838462caf69fff42d1bf121073e33dc24470d
tree    a2d12fe14eb7e8c2fda7e4bd0c4e9c52944457f7
parent  0c210de7cab771fd58f9c7105d07e92c6144311b
...
5
6
7
8
 
9
10
11
...
5
6
7
 
8
9
10
11
0
@@ -5,7 +5,7 @@ class FixtureValidationTest < ActionController::IntegrationTest
0
   def test_fixtures_should_be_valid
0
     models = Fixtures.all_loaded_fixtures.keys
0
     models.each do |model|
0
- model = model.capitalize.singularize.constantize
0
+ model = model.camelize.singularize.constantize
0
       fixtures = model.find(:all)
0
       fixtures.each do |fixture|
0
         if !fixture.valid?

Comments

    No one has commented yet.