My setup was:
MySQL Table name: TABLENAME
Rails Model name: TableName
- The fixture file has to be TABLENAME.yml (not case sensitive)
- fixtures() takes the symbol name of the Model, in this case :tableName (note the first lowercase letter) This is the bit that drove me mad - i was writing fixtures :TableName which appeared to work, but then the test failed if I tried TableName(:foo)
- Now you can write tableName(:foo)
No comments:
Post a Comment