We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3553fb9 commit c6b40c7Copy full SHA for c6b40c7
src/test/groovy/io/codearte/jfairy/FairyFrSpec.groovy
@@ -5,14 +5,21 @@ import spock.lang.Specification
5
6
class FairyFrSpec extends Specification {
7
8
- def "Second create something French"() {
+ private final int SEED = 7
9
+ private Fairy fairy = Fairy.builder().withRandom(new Random(SEED)).withLocale(Locale.FRENCH).build()
10
- given:
11
- Fairy fairy = Fairy.create(Locale.FRENCH);
+ def "Should create French name"() {
12
when:
13
Person person = fairy.person();
14
then:
15
- println person.fullName()
+ person.fullName() == 'Normand Besnard'
16
+ }
17
+
18
+ def "Should create French city"() {
19
+ when:
20
+ Person person = fairy.person();
21
+ then:
22
+ person.address.city == 'Saint-Laurent-du-Maroni'
23
}
24
25
0 commit comments