spec/spec_helper.rb in sunspot-2.1.1 vs spec/spec_helper.rb in sunspot-2.2.0
- old
+ new
@@ -11,9 +11,13 @@
require file
end
require File.join(File.dirname(__FILE__), 'ext')
RSpec.configure do |config|
+ # Run only examples with :focus => true
+ config.filter_run :focus => true
+ config.run_all_when_everything_filtered = true
+
# Mock session available to all spec/api tests
config.include MockSessionHelper,
:type => :api,
:example_group => {:file_path => /spec[\\\/]api/}