Skip to content

Commit

Permalink
Add namespace to scaffold generator
Browse files Browse the repository at this point in the history
  • Loading branch information
blowmage committed Jul 6, 2012
1 parent 0076207 commit f6aeae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generators/mini_test/scaffold/scaffold_generator.rb
Expand Up @@ -12,9 +12,9 @@ class ScaffoldGenerator < Base

def create_test_files
if options[:spec]
template "controller_spec.rb", "test/controllers/#{file_name}_controller_test.rb"
template "controller_spec.rb", File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
else
template "controller_test.rb", "test/controllers/#{file_name}_controller_test.rb"
template "controller_test.rb", File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
end
end
end
Expand Down

0 comments on commit f6aeae3

Please sign in to comment.