Fixes test templates for plugins.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9737 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3ba6718805
commit
afbff44fb4
|
@ -23,6 +23,10 @@ class RedminePluginGenerator < Rails::Generators::NamedBase
|
||||||
empty_directory "#{plugin_path}/assets/stylesheets"
|
empty_directory "#{plugin_path}/assets/stylesheets"
|
||||||
empty_directory "#{plugin_path}/config/locales"
|
empty_directory "#{plugin_path}/config/locales"
|
||||||
empty_directory "#{plugin_path}/test"
|
empty_directory "#{plugin_path}/test"
|
||||||
|
empty_directory "#{plugin_path}/test/fixtures"
|
||||||
|
empty_directory "#{plugin_path}/test/unit"
|
||||||
|
empty_directory "#{plugin_path}/test/functional"
|
||||||
|
empty_directory "#{plugin_path}/test/integration"
|
||||||
|
|
||||||
template 'README.rdoc', "#{plugin_path}/README.rdoc"
|
template 'README.rdoc', "#{plugin_path}/README.rdoc"
|
||||||
template 'init.rb.erb', "#{plugin_path}/init.rb"
|
template 'init.rb.erb', "#{plugin_path}/init.rb"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../test_helper'
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class <%= @controller_class %>ControllerTest < ActionController::TestCase
|
class <%= @controller_class %>ControllerTest < ActionController::TestCase
|
||||||
# Replace this with your real tests.
|
# Replace this with your real tests.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
require File.dirname(__FILE__) + '/../test_helper'
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
|
|
||||||
class <%= @model_class %>Test < ActiveSupport::TestCase
|
class <%= @model_class %>Test < ActiveSupport::TestCase
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue