Skip to content
Browse files

add test for frozen string issue

  • Loading branch information...
1 parent 2dbd880 commit ffc8e0c0e39b772a44e4f089d74d2a82925ee541 @grosser committed Apr 5, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/autolang_spec.rb
View
4 spec/autolang_spec.rb
@@ -25,6 +25,10 @@
end
describe :translate do
+ it "can work with frozen strings" do
+ Autolang.translate('hello'.freeze, 'es'.freeze).should == 'hola'
+ end
+
it "translates a word" do
Autolang.translate('hello', 'es').should == 'hola'
end

0 comments on commit ffc8e0c

Please sign in to comment.
Something went wrong with that request. Please try again.