Permalink
Browse files

fix for see + try travis jruby/sqlite3

  • Loading branch information...
1 parent 854754b commit 5207bc13760ff5b93ced64071f7455f30cabae46 @bbenezech bbenezech committed Feb 21, 2012
Showing with 5 additions and 5 deletions.
  1. +4 −4 .travis.yml
  2. +1 −1 spec/unit/adapters/active_record_spec.rb
View
@@ -47,13 +47,13 @@ matrix:
gemfile: Gemfile31
- rvm: rbx
env: "CI_DB_ADAPTER=mysql"
- gemfile: Gemfile31
+ gemfile: Gemfile31
- rvm: jruby
- env: "CI_DB_ADAPTER=sqlite3"
+ env: "CI_DB_ADAPTER=mysql"
gemfile: Gemfile
- rvm: jruby
- env: "CI_DB_ADAPTER=sqlite3"
+ env: "CI_DB_ADAPTER=mysql"
gemfile: Gemfile31
- rvm: jruby
env: "CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
@@ -62,7 +62,7 @@ matrix:
env: "CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
gemfile: Gemfile31
- rvm: jruby
- env: "CI_DB_ADAPTER=mysql"
+ env: "CI_DB_ADAPTER=sqlite3"
gemfile: Gemfile31
- rvm: 1.9.3
@@ -47,7 +47,7 @@ class ARComment < ActiveRecord::Base
end
it 'reads correct and know types in [:belongs_to, :has_and_belongs_to_many, :has_many, :has_one]' do
- (@post.associations + @blog.associations + @user.associations).map{|a|a[:type]}.uniq.sort.should == [:belongs_to, :has_and_belongs_to_many, :has_many, :has_one]
+ (@post.associations + @blog.associations + @user.associations).map{|a|a[:type]}.uniq.map(&:to_s).sort.should == ['belongs_to', 'has_and_belongs_to_many', 'has_many', 'has_one']
end
end
end

0 comments on commit 5207bc1

Please sign in to comment.