Sha256: 5b2af38fd39e9d626a1ef360750ba91b2ddbb601c1103fd5cbc660648f64cfa1
Contents?: true
Size: 407 Bytes
Versions: 15
Compression:
Stored size: 407 Bytes
Contents
require 'spec_helper' describe 'Google Translation' do include I18n::Tasks::GoogleTranslation if ENV['GOOGLE_TRANSLATE_API_KEY'] context 'real world test' do it 'works' do google_translate( [['common.hello', "Hello, %{user}!"]], from: :en, to: :es, key: ENV['GOOGLE_TRANSLATE_API_KEY'] ).should == [['common.hello', 'Hola, %{user}!']] end end end end
Version data entries
15 entries across 15 versions & 1 rubygems