Skip to content

Commit

Permalink
Ruby 1.9.1 test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Feb 6, 2009
1 parent 0d05631 commit de95b1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -90,8 +90,8 @@ def create_mysql(create, db_name)
end

# Test coverage
gem 'spicycode-rcov' rescue nil
begin
gem 'spicycode-rcov' rescue nil
require 'rcov/rcovtask'

desc "Generate coverage numbers for all locally installed versions of ActiveRecord"
Expand Down
4 changes: 3 additions & 1 deletion test/connection_test.rb
Expand Up @@ -43,7 +43,9 @@ def method_missing(name, *args)
class ConnectionTest < Test::Unit::TestCase

def test_should_install_into_arbase
assert PrefixModel.methods.include?('data_fabric')
# Ruby 1.8 vs 1.9 difference
meth = PrefixModel.methods.first.is_a?(Symbol) ? :data_fabric : 'data_fabric'
assert PrefixModel.methods.include?(meth)
end

def test_prefix_connection_name
Expand Down

0 comments on commit de95b1f

Please sign in to comment.