aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/actions_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-07-04 16:57:14 +0200
committerJosé Valim <jose.valim@gmail.com>2009-07-04 20:17:32 +0200
commitda09d46ed463459eb651f6c1e6af923e283da6e6 (patch)
tree1f9c75bbd8ce16daa3004b4ba057125772268b55 /railties/test/generators/actions_test.rb
parentcd388e075c363d80f9bba050bbc77d7a1a1e0e07 (diff)
downloadrails-da09d46ed463459eb651f6c1e6af923e283da6e6.tar.gz
rails-da09d46ed463459eb651f6c1e6af923e283da6e6.tar.bz2
rails-da09d46ed463459eb651f6c1e6af923e283da6e6.zip
Make generators test pass with latest Thor version
Diffstat (limited to 'railties/test/generators/actions_test.rb')
-rw-r--r--railties/test/generators/actions_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb
index baf687336a..c17b599582 100644
--- a/railties/test/generators/actions_test.rb
+++ b/railties/test/generators/actions_test.rb
@@ -31,12 +31,12 @@ class ActionsTest < GeneratorsTestCase
end
def test_plugin_with_git_option_should_run_plugin_install
- generator.expects(:run).once.with("ruby script/plugin install #{@git_plugin_uri}", false)
+ generator.expects(:run_ruby_script).once.with("script/plugin install #{@git_plugin_uri}", false)
action :plugin, 'restful-authentication', :git => @git_plugin_uri
end
def test_plugin_with_svn_option_should_run_plugin_install
- generator.expects(:run).once.with("ruby script/plugin install #{@svn_plugin_uri}", false)
+ generator.expects(:run_ruby_script).once.with("script/plugin install #{@svn_plugin_uri}", false)
action :plugin, 'restful-authentication', :svn => @svn_plugin_uri
end
@@ -132,7 +132,7 @@ class ActionsTest < GeneratorsTestCase
end
def test_generate_should_run_script_generate_with_argument_and_options
- generator.expects(:run).once.with('ruby script/generate model MyModel', false)
+ generator.expects(:run_ruby_script).once.with('script/generate model MyModel', false)
action :generate, 'model', 'MyModel'
end