Skip to content

Commit

Permalink
Add unit test for testing windows zip download
Browse files Browse the repository at this point in the history
  • Loading branch information
datallah committed Sep 15, 2016
1 parent 3a164f2 commit 85922c0
Showing 1 changed file with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,32 @@ class Setup_integTest
then:
result.wasExecuted( 'nodeSetup' )
}
def 'setup node (windows download)'()
{
System.setProperty( 'os.name', 'Windows' )
given:
writeBuild( '''
apply plugin: 'com.moowork.node'

node {
version = "4.5.0"
download = true
}
''' )
when:
def result = runTasksSuccessfully( 'nodeSetup' )
then:
result.wasExecuted( 'nodeSetup' )
}
def 'setup node (windows download separate exe)'()
{
System.setProperty( 'os.name', 'Windows' )
given:
writeBuild( '''
apply plugin: 'com.moowork.node'
Expand Down

0 comments on commit 85922c0

Please sign in to comment.