Skip to content

Commit

Permalink
Some smaller fixes to prepare for Ruby 1.9 support. Not easy though s…
Browse files Browse the repository at this point in the history
…ince Mocha doesn't seem to reflect the removal of Test::Unit yet.
  • Loading branch information
roidrage committed Nov 18, 2008
1 parent 3cf908c commit bbbed8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/solr.rake
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ namespace :solr do
def env_to_bool(env, default)
env = ENV[env] || ''
case env
when /^true$/i: true
when /^false$/i: false
when /^true$/i then true
when /^false$/i then false
else default
end
end
Expand Down
8 changes: 6 additions & 2 deletions test/unit/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
require 'rubygems'
gem 'thoughtbot-shoulda'
require 'shoulda'
require 'test/unit'
require 'mocha'
if RUBY_VERSION =~ /^1\.9/
require 'minitest/unit'
else
require 'test/unit'
require 'mocha'
end

0 comments on commit bbbed8c

Please sign in to comment.