From 1ce454948adbc67a3139417ddfe912184e4dfc66 Mon Sep 17 00:00:00 2001 From: Mateus Pontes Date: Wed, 12 Apr 2017 17:26:31 -0300 Subject: [PATCH] Add option to run specific spec with focus --- spec/spec_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 11e4486a..91d645f5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,4 +22,6 @@ Mongo::Logger.logger.level = Logger::INFO if Mongoid::Compatibility::Version.mongoid5? || Mongoid::Compatibility::Version.mongoid6? Mongoid.belongs_to_required_by_default = false if Mongoid::Compatibility::Version.mongoid6? end + config.filter_run focus: true + config.run_all_when_everything_filtered = true end