Skip to content

Commit

Permalink
beter test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuszs committed Sep 4, 2015
1 parent 3553fb9 commit c6b40c7
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/test/groovy/io/codearte/jfairy/FairyFrSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ import spock.lang.Specification

class FairyFrSpec extends Specification {

def "Second create something French"() {
private final int SEED = 7
private Fairy fairy = Fairy.builder().withRandom(new Random(SEED)).withLocale(Locale.FRENCH).build()

given:
Fairy fairy = Fairy.create(Locale.FRENCH);
def "Should create French name"() {
when:
Person person = fairy.person();
then:
println person.fullName()
person.fullName() == 'Normand Besnard'
}

def "Should create French city"() {
when:
Person person = fairy.person();
then:
person.address.city == 'Saint-Laurent-du-Maroni'
}

}

0 comments on commit c6b40c7

Please sign in to comment.