spec/spec_helper.rb in sunspot_solr-2.2.5 vs spec/spec_helper.rb in sunspot_solr-2.2.6
- old
+ new
@@ -1,18 +1,6 @@
-begin
- require 'rspec'
-rescue LoadError => e
- require 'spec'
-end
+require "sunspot_solr"
-require 'sunspot_solr'
-
-rspec =
- begin
- RSpec
- rescue NameError, ArgumentError
- Spec::Runner
- end
-
-rspec.configure do |config|
- # Maybe later...
+RSpec.configure do |config|
+ config.filter_run_including focus: true
+ config.run_all_when_everything_filtered = true
end