Permalink
Browse files

fix specs for 1.9

  • Loading branch information...
1 parent 1d5d01a commit 2dbd8806012cf2d59b3629dd265227aeb5471e54 @grosser committed Apr 5, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/autolang.rb
  2. +1 −1 spec/autolang_spec.rb
View
@@ -7,7 +7,7 @@ class Autolang
def self.extract_msgid(text)
return unless text =~ /^msgid/
return unless msgid = text.scan(/"(.+)"/)[0]
- msgid.to_s.gsub(' | ','|')
+ msgid.first.to_s.gsub(' | ','|')
end
def self.translate_into_new_language(pot_file, language)
View
@@ -80,7 +80,7 @@
end
describe 'translate pot file' do
- delete = lambda{ `rm -rf spec/fixtures && mkdir spec/fixtures` }
+ delete = lambda{|_| `rm -rf spec/fixtures && mkdir spec/fixtures` }
before &delete
after &delete

0 comments on commit 2dbd880

Please sign in to comment.