Skip to content

Commit

Permalink
Added Korean unit tests (#739)
Browse files Browse the repository at this point in the history
  • Loading branch information
jremes-foss authored and stympy committed Dec 17, 2016
1 parent 4f1f351 commit 65892d6
Showing 1 changed file with 29 additions and 0 deletions.
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

0 comments on commit 65892d6

Please # to comment.