Sha256: d5a13b845d39320df465109d70543c2067f6a4ec5915076464acb22a738eaad0

Contents?: true

Size: 368 Bytes

Versions: 2

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

describe Forgery::Name do
  it "should return a random first name" do
    expect(Forgery.dictionaries[:male_first_names] + Forgery.dictionaries[:female_first_names]).to include(Forgery::Name.first_name)
  end

  it "should return a random last name" do
    expect(Forgery.dictionaries[:last_names]).to include(Forgery::Name.last_name)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgery-0.8.1 spec/forgery/name_spec.rb
forgery-0.7.0 spec/forgery/name_spec.rb