forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing i18n jobs fix (faker-ruby#1142)
* update rake * add failing test for locale without translations * add fetch for position fixing faker-ruby#1139 * reformat class to make consistant with other Faker classes
- Loading branch information
1 parent
aaad5ca
commit 050b87e
Showing
3 changed files
with
24 additions
and
0 deletions.
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
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') | ||
|
||
class TestFakerJobLocale < Test::Unit::TestCase | ||
def setup | ||
Faker::Config.locale = 'en-AU' | ||
@tester = Faker::Job | ||
end | ||
|
||
def teardown | ||
Faker::Config.locale = nil | ||
end | ||
|
||
def test_locale_without_jobs_defaults_to_en | ||
assert @tester.position.match(/(\w+\.? ?)/) | ||
end | ||
end |