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:
parent
ae5f2b4e79
commit
a68ffa731e
1 changed files with 0 additions and 9 deletions
|
@ -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!" }
|
||||
|
|
Loading…
Reference in a new issue