-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix .first_name in Forgery::Name (this is why we test)
- Loading branch information
Nathan Sutton
committed
Sep 4, 2011
1 parent
78dd670
commit b3093ff
Showing
2 changed files
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,11 @@ | |||
require 'spec_helper' | require 'spec_helper' | ||
|
|
||
describe Forgery::Name do | describe Forgery::Name do | ||
it "should return a random first name" do | |||
(Forgery.dictionaries[:male_first_names] + Forgery.dictionaries[:female_first_names]).should include(Forgery::Name.first_name) | |||
end | |||
|
|||
it "should return a random last name" do | |||
Forgery.dictionaries[:last_names].should include(Forgery::Name.last_name) | |||
end | |||
end | end |