Fix misspelling of 'deprecation' in plugin_generator.

This commit is contained in:
Doug Ireton
2010-11-16 13:20:25 +08:00
committed by José Valim
parent ace84a003c
commit ecd0310e14
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module Rails
def show_deprecation
return unless behavior == :invoke
message = "Plugin generator is depreacted, please use 'rails plugin new' command to generate plugin structure."
message = "Plugin generator is deprecated, please use 'rails plugin new' command to generate plugin structure."
ActiveSupport::Deprecation.warn message
end

View File

@@ -66,6 +66,6 @@ class PluginGeneratorTest < Rails::Generators::TestCase
def test_deprecation
output = capture(:stderr) { run_generator }
assert_match /Plugin generator is depreacted, please use 'rails plugin new' command to generate plugin structure./, output
assert_match /Plugin generator is deprecated, please use 'rails plugin new' command to generate plugin structure./, output
end
end