1
0
mirror of https://github.com/askn/faker.git synced 2023-08-10 21:13:01 +03:00
faker/spec/business_spec.cr

11 lines
350 B
Crystal
Raw Normal View History

require "./spec_helper"
describe Faker::Business do
it "should return deterministic results when seeded" do
Faker.seed 123456
2018-09-21 15:41:48 +03:00
Faker::Business.credit_card_number.should eq "1228-1221-1221-1431"
Faker::Business.credit_card_expiry_date.should eq Time.new(2013, 9, 12)
2018-09-21 15:41:48 +03:00
Faker::Business.credit_card_type.should eq "mastercard"
end
end