From f7927e1610f07921fd3f74ea06a802838d1630e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20B=C3=B6ttger?= Date: Mon, 5 May 2014 21:54:07 +0200 Subject: [PATCH] running tests with Sequel, too --- Gemfile | 3 ++- gemfiles/rails_3.2.gemfile | 1 + gemfiles/rails_4.0.gemfile | 2 ++ gemfiles/rails_4.1.gemfile | 2 ++ spec/unit/persistence/mongoid_persistance_spec.rb | 2 +- spec/unit/persistence/sequel_persistence_spec.rb | 2 +- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index ba71873..fd0e709 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,8 @@ gem "coveralls", :platforms => :ruby gem 'rubysl', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby -gem "rails", "3.2.15" +gem "rails", "3.2.17" gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'sequel' gemspec diff --git a/gemfiles/rails_3.2.gemfile b/gemfiles/rails_3.2.gemfile index e7c6b10..9b57b31 100644 --- a/gemfiles/rails_3.2.gemfile +++ b/gemfiles/rails_3.2.gemfile @@ -8,5 +8,6 @@ gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "3.2.17" gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'sequel' gemspec :path => "../" diff --git a/gemfiles/rails_4.0.gemfile b/gemfiles/rails_4.0.gemfile index 17bcd07..7343b2d 100644 --- a/gemfiles/rails_4.0.gemfile +++ b/gemfiles/rails_4.0.gemfile @@ -7,5 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "4.0.4" +gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'sequel' gemspec :path => "../" diff --git a/gemfiles/rails_4.1.gemfile b/gemfiles/rails_4.1.gemfile index a1438b1..3949af9 100644 --- a/gemfiles/rails_4.1.gemfile +++ b/gemfiles/rails_4.1.gemfile @@ -7,5 +7,7 @@ gem 'rubinius-developer_tools', :platforms => :rbx gem "jruby-openssl", :platforms => :jruby gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby gem "rails", "4.1.0" +gem 'mongoid' if Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version.create('1.9.3') +gem 'sequel' gemspec :path => "../" diff --git a/spec/unit/persistence/mongoid_persistance_spec.rb b/spec/unit/persistence/mongoid_persistance_spec.rb index 5bd490a..3a4ffe6 100644 --- a/spec/unit/persistence/mongoid_persistance_spec.rb +++ b/spec/unit/persistence/mongoid_persistance_spec.rb @@ -147,6 +147,6 @@ describe 'mongoid', :if => Gem::Version.create(RUBY_VERSION.dup) >= Gem::Version end rescue LoadError - puts "Not running Mongoid specs because mongoid gem if not installed!!!" + puts "Not running Mongoid specs because mongoid gem is not installed!!!" end end diff --git a/spec/unit/persistence/sequel_persistence_spec.rb b/spec/unit/persistence/sequel_persistence_spec.rb index 0eb970b..e62fdc7 100644 --- a/spec/unit/persistence/sequel_persistence_spec.rb +++ b/spec/unit/persistence/sequel_persistence_spec.rb @@ -98,6 +98,6 @@ describe 'sequel' do end rescue LoadError - puts "Not running Sequel specs because sequel gem if not installed!!!" + puts "Not running Sequel specs because sequel gem is not installed!!!" end end