From d2de470162367b2302a45fe3b8f404e61fbc33e3 Mon Sep 17 00:00:00 2001 From: ujifgc Date: Wed, 10 Jul 2013 11:02:26 +0400 Subject: [PATCH] skip padrino-cache with mongo on rbx engine --- padrino-cache/test/test_stores.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/padrino-cache/test/test_stores.rb b/padrino-cache/test/test_stores.rb index 7482d5f75..e76e3a713 100644 --- a/padrino-cache/test/test_stores.rb +++ b/padrino-cache/test/test_stores.rb @@ -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