blob: 38f611087f44c3a01dc19ebe9d931cc92f06a2c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe LanguageNames do
describe :get_language_name do
it 'should return the name assigned to the language' do
LanguageNames.get_language_name('en').should == 'English'
end
it 'should return the name assigned to the language when there is no specific location' do
LanguageNames.get_language_name('pt_BR').should == 'Português'
end
it 'should return the name assigned to the language/location combination' do
LanguageNames.get_language_name('zh_HK').should == '中文(香港)'
end
end
end
|