public
Description: reworking of rspec_on_rails[_on_crack] generators
Clone URL: git://github.com/sob/sexy_specs.git
Click here to lend your support to: sexy_specs and make a donation at www.pledgie.com !
model generator was putting model_spec.rb in wrong directory
mrflip (author)
Thu May 08 00:07:51 -0700 2008
commit  d5f78023c9daa53ae88ce1137d12ca5a2141338c
tree    48df491677426ddfca4a195070ed9c52213d67fc
parent  d8a541d1348a58b47883e8062d7b0f8bb04d3882
...
12
13
14
15
 
16
17
 
18
19
20
...
23
24
25
26
27
 
...
12
13
14
 
15
16
 
17
18
19
20
...
23
24
25
 
26
27
0
@@ -12,9 +12,9 @@ class SexyModelGenerator < ModelGenerator
0
       m.directory(File.join('spec/fixtures', class_path))
0
       
0
       # Model class, spec and fixtures.
0
- m.template('model:model.rb', File.join('app/models', class_path, "#{file_name}.rb"))
0
+ m.template('model:model.rb', File.join('app/models', class_path, "#{file_name}.rb"))
0
       m.template('model:fixtures.yml', File.join('spec/fixtures', class_path, "#{table_name}.yml"))
0
- m.template('model_spec.rb', File.join('spec/fixtures', class_path, "#{file_name}_spec.rb"))
0
+ m.template('model_spec.rb', File.join('spec/models', class_path, "#{file_name}_spec.rb"))
0
       
0
       unless options[:skip_migration]
0
         m.migration_template('model:migration.rb', 'db/migrate', :assigns => {
0
@@ -23,4 +23,4 @@ class SexyModelGenerator < ModelGenerator
0
       end
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.