Skip to content

Commit

Permalink
skip padrino-cache with mongo on rbx engine
Browse files Browse the repository at this point in the history
  • Loading branch information
ujifgc committed Jul 10, 2013
1 parent 1c5f42d commit d2de470
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions padrino-cache/test/test_stores.rb
Expand Up @@ -80,11 +80,14 @@ def teardown

begin
require 'mongo'
fail NotImplementedError, "Skipping mongo test for rbx" if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
Padrino::Cache::Store::Mongo.new(::Mongo::Connection.new('127.0.0.1', 27017).db('padrino-cache_test'))
rescue LoadError
warn "Skipping Mongo tests with Mongo library tests"
rescue Mongo::ConnectionFailure
warn "Skipping Mongo with server tests"
rescue NotImplementedError => e
warn e.to_s
else
describe "MongoStore" do
def setup
Expand Down

0 comments on commit d2de470

Please sign in to comment.