Sha256: 62b55ce87e3d62cb803b90a05362acd210cc7b1ae382d1697d7a066d06592bb5
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
require File.dirname(__FILE__) + '/spec_helper' require File.join(File.dirname(__FILE__) + "/../lib/gtranslate/mixins") describe Google::Translate do describe "string mixin" do it "should translate from a string using to_french" do r = "Hello".to_french r.should be_a_kind_of(String) r.should == "Bonjour" end it "should translate from a string using to_fr" do r = "Hello".to_fr r.should be_a_kind_of(String) r.should == "Bonjour" end it "should translate from a string using english_to_french" do r = "Hello".english_to_french r.should be_a_kind_of(String) r.should == "Bonjour" end it "should translate from a string using english_to_fr" do r = "Hello".english_to_fr r.should be_a_kind_of(String) r.should == "Bonjour" end it "should translate from a string using en_to_french" do r = "Hello".en_to_french r.should be_a_kind_of(String) r.should == "Bonjour" end it "should translate from a string using en_to_fr" do r = "Hello".en_to_fr r.should be_a_kind_of(String) r.should == "Bonjour" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caius-gtranslate-0.9.1 | spec/string_mixin_spec.rb |