Skip to content
Browse files

Ruby 1.9.1 test failure

  • Loading branch information...
1 parent 0d05631 commit de95b1f3288bc1ff155aa24a1b77b1d85c88325b @mperham mperham committed
Showing with 4 additions and 2 deletions.
  1. +1 −1 Rakefile
  2. +3 −1 test/connection_test.rb
View
2 Rakefile
@@ -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"
View
4 test/connection_test.rb
@@ -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

0 comments on commit de95b1f

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