2016-01-17 23:31:08 +03:00
|
|
|
require "./spec_helper"
|
|
|
|
require "http/client"
|
|
|
|
|
|
|
|
describe Faker::Company do
|
|
|
|
it "logo" do
|
|
|
|
Faker::Company.logo.match(%r{https://pigment.github.io/fake-logos/logos/medium/color/\d+\.png}).should_not eq nil
|
|
|
|
end
|
2017-07-09 14:41:45 +03:00
|
|
|
|
|
|
|
it "should return deterministic results when seeded" do
|
|
|
|
Faker.seed 123456
|
2018-09-21 15:41:48 +03:00
|
|
|
Faker::Company.name.should eq "Kemmer-Gleichner"
|
|
|
|
Faker::Company.suffix.should eq "Inc"
|
|
|
|
Faker::Company.logo.should eq "https://pigment.github.io/fake-logos/logos/medium/color/10.png"
|
2017-07-09 14:41:45 +03:00
|
|
|
end
|
2016-01-17 23:31:08 +03:00
|
|
|
end
|