>
> $ sqlite3 db/development.sqlite3
> sqlite> select * from balances;
> //=> |xxx|10|1||...
> // equal is not 9
>
> Even create_or_update() was the same.
>
fixtures are directly inserted into the db
> Should I write it as
> equal: 9
> in the fixture-file?
>
> It's not DRY.
>
It isn't, but then again your data just isn't dry. You can use erb in
your fixtures ( <%= %>) if it's bothering you that much.
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment