2016-01-17 23:31:08 +03:00
|
|
|
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
|
2017-07-09 14:41:45 +03:00
|
|
|
|
|
|
|
it "should return deterministic results when seeded" do
|
|
|
|
Faker.seed 123456
|
|
|
|
Faker::Team.creature.should eq "buffalo"
|
|
|
|
Faker::Team.name.should eq "Washington sorcerors"
|
|
|
|
Faker::Team.state.should eq "Delaware"
|
|
|
|
end
|
2016-01-17 23:31:08 +03:00
|
|
|
end
|