1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Removed duplicate test cases for template execution

This commit is contained in:
Ronak Jangir 2015-06-04 01:41:16 +05:30
parent ae5f2b4e79
commit a68ffa731e

View file

@ -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!" }