Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Korean unit tests #739

Merged
merged 1 commit into from
Dec 17, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions test/test_ko_locale.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb')

class TestKoLocale < Test::Unit::TestCase
def setup
Faker::Config.locale = 'ko'
end

def teardown
Faker::Config.locale = nil
end

def test_ko_methods
assert Faker::Address.postcode.is_a? String
assert Faker::Address.state_abbr.is_a? String
assert Faker::Address.city_suffix.is_a? String
assert Faker::Address.city_name.is_a? String
assert Faker::Address.street_name.is_a? String
assert Faker::Company.suffix.is_a? String
assert Faker::Company.prefix.is_a? String
assert Faker::Company.name.is_a? String
assert Faker::Internet.free_email.is_a? String
assert Faker::Internet.domain_suffix.is_a? String
assert Faker::Lorem.words.is_a? Array
assert Faker::Name.last_name.is_a? String
assert Faker::Name.first_name.is_a? String
assert Faker::Name.name.is_a? String
end

end