1
0
mirror of https://github.com/askn/faker.git synced 2023-08-10 21:13:01 +03:00
faker/spec/team_spec.cr
Ricky Chilcott 6e5e8fad11 Fixing specs
2018-09-21 08:41:48 -04:00

27 lines
617 B
Crystal

require "./spec_helper"
describe Faker::Team do
it "name" do
Faker::Team.name.match(/(\w+\.? ?){2}/).should_not eq nil
end
it "creature" do
Faker::Team.creature.match(/(\w+){1}/).should_not eq nil
end
it "state" do
Faker::Team.state.match(/(\w+){1}/).should_not eq nil
end
it "sport" do
# Faker::Team.sport.match(/(\w+){1}/).should_not eq nil
end
it "should return deterministic results when seeded" do
Faker.seed 123456
Faker::Team.creature.should eq "vampires"
Faker::Team.name.should eq "New Jersey griffins"
Faker::Team.state.should eq "Arkansas"
end
end