aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators/actions_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2009-06-28 12:00:13 +0200
committerJosé Valim <jose.valim@gmail.com>2009-06-28 12:00:13 +0200
commit4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9 (patch)
treef0c11a2dfa057045a2ae24acc0b9bc558c0f3d25 /railties/test/generators/actions_test.rb
parent496dde95fbedddad5d04afbe660ff1544229032c (diff)
downloadrails-4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9.tar.gz
rails-4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9.tar.bz2
rails-4f3e44fa03ab8fc47f75fa710b28c72b9b2328b9.zip
Move file action only to app generator.
Diffstat (limited to 'railties/test/generators/actions_test.rb')
-rw-r--r--railties/test/generators/actions_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/generators/actions_test.rb b/railties/test/generators/actions_test.rb
index a0502e9112..baf687336a 100644
--- a/railties/test/generators/actions_test.rb
+++ b/railties/test/generators/actions_test.rb
@@ -20,13 +20,13 @@ class ActionsTest < GeneratorsTestCase
assert_equal generator.instance_variable_get("@foo"), "FOO"
end
- def test_file_should_write_data_to_file_path
- action :file, 'lib/test_file.rb', 'heres test data'
+ def test_create_file_should_write_data_to_file_path
+ action :create_file, 'lib/test_file.rb', 'heres test data'
assert_file 'lib/test_file.rb', 'heres test data'
end
- def test_file_should_write_block_contents_to_file_path
- action(:file, 'lib/test_file.rb'){ 'heres block data' }
+ def test_create_file_should_write_block_contents_to_file_path
+ action(:create_file, 'lib/test_file.rb'){ 'heres block data' }
assert_file 'lib/test_file.rb', 'heres block data'
end