aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRonak Jangir <ronakjangir47@gmail.com>2015-06-04 01:41:16 +0530
committerRonak Jangir <ronakjangir47@gmail.com>2015-06-04 01:55:54 +0530
commita68ffa731eaa72f37f5b9ba14359c7b2f447fcbf (patch)
treef94b950232af115eb8140e349f795081da420096 /railties
parentae5f2b4e79f3e41aad8280109d8bfc788a1a2733 (diff)
downloadrails-a68ffa731eaa72f37f5b9ba14359c7b2f447fcbf.tar.gz
rails-a68ffa731eaa72f37f5b9ba14359c7b2f447fcbf.tar.bz2
rails-a68ffa731eaa72f37f5b9ba14359c7b2f447fcbf.zip
Removed duplicate test cases for template execution
Diffstat (limited to 'railties')
-rw-r--r--railties/test/generators/shared_generator_tests.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/railties/test/generators/shared_generator_tests.rb b/railties/test/generators/shared_generator_tests.rb
index 3a2195035f..f983b45d2b 100644
--- a/railties/test/generators/shared_generator_tests.rb
+++ b/railties/test/generators/shared_generator_tests.rb
@@ -86,15 +86,6 @@ module SharedGeneratorTests
end
end
- def test_template_is_executed_when_supplied
- path = "https://gist.github.com/josevalim/103208/raw/"
- template = %{ say "It works!" }
- template.instance_eval "def read; self; end" # Make the string respond to read
-
- generator([destination_root], template: path).expects(:open).with(path, 'Accept' => 'application/x-thor-template').returns(template)
- quietly { assert_match(/It works!/, capture(:stdout) { generator.invoke_all }) }
- end
-
def test_template_is_executed_when_supplied_an_https_path
path = "https://gist.github.com/josevalim/103208/raw/"
template = %{ say "It works!" }