lib/rib/test.rb in rib-1.2.6 vs lib/rib/test.rb in rib-1.2.7

- old
+ new

@@ -17,11 +17,15 @@ singleton_class.module_eval do def test_for *plugins, &block require 'rib/all' # exhaustive tests rest = Rib.plugins - plugins - Rib.enable_plugins(plugins) - Rib.disable_plugins(rest) + + before do + Rib.enable_plugins(plugins) + Rib.disable_plugins(rest) + end + yield case ENV['TEST_LEVEL'] when '0' when '1'