Skip to content

Commit c493955

Browse files
committed
fix test description to match the recently changed method names
1 parent e10e524 commit c493955

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/test/groovy/graphql/ScalarsTest.groovy

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import spock.lang.Specification
99

1010
class ScalarsTest extends Specification {
1111

12-
def "String coerce literal"() {
12+
def "String parse literal"() {
1313
expect:
1414
Scalars.GraphQLString.getCoercing().parseLiteral(literal) == result
1515

@@ -18,7 +18,7 @@ class ScalarsTest extends Specification {
1818
new StringValue("test") | "test"
1919
}
2020

21-
def "String coerce object"() {
21+
def "String serialize object"() {
2222
expect:
2323
Scalars.GraphQLString.getCoercing().serialize(value) == result
2424

@@ -28,25 +28,25 @@ class ScalarsTest extends Specification {
2828
"test" | "test"
2929
}
3030

31-
def "ID coerce literal"() {
31+
def "ID parse literal"() {
3232
expect:
3333
Scalars.GraphQLID.getCoercing().parseLiteral(literal) == result
3434

3535
where:
36-
literal | result
36+
literal | result
3737
new StringValue("5457486ABSBHS4w646") | "5457486ABSBHS4w646"
3838
}
3939

40-
def "ID coerce object"() {
40+
def "ID serialize object"() {
4141
expect:
4242
Scalars.GraphQLID.getCoercing().serialize(value) == result
4343

4444
where:
45-
value | result
46-
"5457486ABSBHS4w646" | "5457486ABSBHS4w646"
45+
value | result
46+
"5457486ABSBHS4w646" | "5457486ABSBHS4w646"
4747
}
4848

49-
def "Int coerce literal"() {
49+
def "Int parse literal"() {
5050
expect:
5151
Scalars.GraphQLInt.getCoercing().parseLiteral(literal) == result
5252

@@ -55,7 +55,7 @@ class ScalarsTest extends Specification {
5555
new IntValue(42) | 42
5656
}
5757

58-
def "Long coerce object"() {
58+
def "Long serialize object"() {
5959
expect:
6060
Scalars.GraphQLLong.getCoercing().serialize(value) == result
6161

@@ -66,7 +66,7 @@ class ScalarsTest extends Specification {
6666
new Integer(42) | 42
6767
}
6868

69-
def "Long coerce literal"() {
69+
def "Long parse literal"() {
7070
expect:
7171
Scalars.GraphQLLong.getCoercing().parseLiteral(literal) == result
7272

@@ -75,7 +75,7 @@ class ScalarsTest extends Specification {
7575
new StringValue("42") | 42
7676
}
7777

78-
def "Int coerce object"() {
78+
def "Int serialize object"() {
7979
expect:
8080
Scalars.GraphQLInt.getCoercing().serialize(value) == result
8181

@@ -85,7 +85,7 @@ class ScalarsTest extends Specification {
8585
new Integer(42) | 42
8686
}
8787

88-
def "Float coerce literal"() {
88+
def "Float parse literal"() {
8989
expect:
9090
Scalars.GraphQLFloat.getCoercing().parseLiteral(literal) == result
9191

@@ -94,7 +94,7 @@ class ScalarsTest extends Specification {
9494
new FloatValue(42.3) | 42.3f
9595
}
9696

97-
def "Float coerce object"() {
97+
def "Float serialize object"() {
9898
expect:
9999
Scalars.GraphQLFloat.getCoercing().serialize(value) == result
100100

@@ -105,7 +105,7 @@ class ScalarsTest extends Specification {
105105
new Float(42.3) | 42.3f
106106
}
107107

108-
def "Boolean coerce literal"() {
108+
def "Boolean parse literal"() {
109109
expect:
110110
Scalars.GraphQLBoolean.getCoercing().parseLiteral(literal) == result
111111

@@ -114,7 +114,7 @@ class ScalarsTest extends Specification {
114114
new BooleanValue(true) | true
115115
}
116116

117-
def "Boolean coerce object"() {
117+
def "Boolean serialize object"() {
118118
expect:
119119
Scalars.GraphQLBoolean.getCoercing().serialize(value) == result
120120

0 commit comments

Comments
 (0)