Good timing, I was just thinking that annotate would be more useful in my models and fixtures.<br><br><div><span class="gmail_quote">On 5/27/07, <b class="gmail_sendername">Aníbal Rojas</b> <<a href="mailto:anibal@rojas.com.ve">
anibal@rojas.com.ve</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have found useful to have the table information associated to models
<br>dispåayed in the models and fixtures files of my rails applications.<br>If you want to add this information to the spec_fixtures and specs add<br>the following patch to your plugin.<br><br>Index: vendor/plugins/annotate_models/lib/annotate_models.rb
<br>===================================================================<br>--- vendor/plugins/annotate_models/lib/annotate_models.rb (revision 45)<br>+++ vendor/plugins/annotate_models/lib/annotate_models.rb (working copy)
<br>@@ -1,7 +1,8 @@<br> require "config/environment"<br><br> MODEL_DIR = File.join(RAILS_ROOT, "app/models")<br>-FIXTURE_DIR = File.join(RAILS_ROOT, "test/fixtures")<br>+SPEC_DIR = File.join
(RAILS_ROOT, "spec/models")<br>+FIXTURE_DIR = File.join(RAILS_ROOT, "spec/fixtures")<br><br> module AnnotateModels<br><br>@@ -75,6 +76,9 @@<br> model_file_name = File.join(MODEL_DIR, klass.name.underscore
+ ".rb")<br> annotate_one_file(model_file_name, info)<br><br>+ spec_file_name = File.join(SPEC_DIR, klass.name.underscore + "_spec.rb")<br>+ annotate_one_file(spec_file_name, info)<br>+<br> fixture_file_name =
File.join(FIXTURE_DIR, klass.table_name + ".yml")<br> annotate_one_file(fixture_file_name, info)<br> end<br><br>--<br>Aníbal Rojas<br><a href="http://www.rubycorner.com">http://www.rubycorner.com</a><br><a href="http://www.hasmanydevelopers.com">
http://www.hasmanydevelopers.com</a><br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">
http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br>