diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-06-04 08:43:27 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-06-04 08:43:27 +0200 |
commit | 7220ffcffd0085b3caee872102b3b28f3ca35c83 (patch) | |
tree | fee6ada8bc3c6df0bd24dc65cf18145a0e07128f | |
parent | ba37d5da060a71aebb9c8ba63e879360ed2023ab (diff) | |
parent | a68ffa731eaa72f37f5b9ba14359c7b2f447fcbf (diff) | |
download | rails-7220ffcffd0085b3caee872102b3b28f3ca35c83.tar.gz rails-7220ffcffd0085b3caee872102b3b28f3ca35c83.tar.bz2 rails-7220ffcffd0085b3caee872102b3b28f3ca35c83.zip |
Merge pull request #20427 from ronakjangir47/http_path
Removed duplicate test cases for template execution
-rw-r--r-- | railties/test/generators/shared_generator_tests.rb | 9 |
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!" } |