mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix misspelling of 'deprecation' in plugin_generator.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user