Skip to content

Commit

Permalink
Update Groovy version -> 2.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
danf committed Jun 22, 2015
1 parent 8d20dad commit 38779a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ subprojects() {
project(':bintray-client-java-service') {
dependencies {
compile project(':bintray-client-java-api')
compile 'org.codehaus.groovy:groovy:1.8.0'
compile 'commons-lang:commons-lang:2.6'
testCompile 'org.codehaus.groovy:groovy-all:2.4.1'
testCompile group: 'com.timgroup', name: 'jgravatar', version: '1.0'
testCompile("org.spockframework:spock-core:0.7-groovy-1.8") {
testCompile("org.spockframework:spock-core:1.0-groovy-2.4") {
exclude module: 'groovy-all'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ class BintraySpecSuite {
new Attribute<String>('b', 'b', 'e'),
new Attribute<String>('c', 'cee')]

public static String expectedAttributes = '[[values:[ay1, ay2], name:a, type:string], ' +
'[values:[cee], name:c, type:string], [values:[e, b], name:b, type:string]]'
public
static String expectedPkgAttributes = '[[name:c, type:string, values:[cee]], [name:a, type:string, values:[ay1, ay2]], [name:b, type:string, values:[e, b]]]'
public
static String expectedVerAttributes = '[[name:a, type:string, values:[ay1, ay2]], [name:c, type:string, values:[cee]], [name:b, type:string, values:[e, b]]]'

public
static String assortedAttributes = "[{\"name\":\"verAttr2\",\"values\":[\"val1\",\"val2\"],\"type\":\"string\"}," +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PackageSpec extends Specification {
then:
['a', 'b', 'c'] == actualPackage.attribute_names.sort()
and:
expectedAttributes.equalsIgnoreCase(actualAttributes.sort().toString())
expectedPkgAttributes.equalsIgnoreCase(actualAttributes.toString())
}

def 'wrong package gives 404'() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class VersionSpec extends Specification {
then:
['a', 'b', 'c'] == actualVersion.attribute_names.sort()
and:
expectedAttributes == actualAttributes.sort().toString()
expectedVerAttributes.equalsIgnoreCase(actualAttributes.sort().toString())

}

Expand Down

0 comments on commit 38779a5

Please sign in to comment.