Displaying 1 result from an estimated 1 matches for "annotate_one_file".
2007 May 27
1
annotate_models plugin to annotate RSpec specs and fixture
...n(RAILS_ROOT, "test/fixtures")
+SPEC_DIR = File.join(RAILS_ROOT, "spec/models")
+FIXTURE_DIR = File.join(RAILS_ROOT, "spec/fixtures")
module AnnotateModels
@@ -75,6 +76,9 @@
model_file_name = File.join(MODEL_DIR, klass.name.underscore + ".rb")
annotate_one_file(model_file_name, info)
+ spec_file_name = File.join(SPEC_DIR, klass.name.underscore + "_spec.rb")
+ annotate_one_file(spec_file_name, info)
+
fixture_file_name = File.join(FIXTURE_DIR, klass.table_name + ".yml")
annotate_one_file(fixture_file_name, info)
end...