Skip to content

Commit

Permalink
fix specs for 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Apr 5, 2011
1 parent 1d5d01a commit 2dbd880
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/autolang.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/autolang_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2dbd880

Please sign in to comment.