spec/lite_spec_helper.rb in mongo-2.18.2 vs spec/lite_spec_helper.rb in mongo-2.18.3
- old
+ new
@@ -108,9 +108,18 @@
config.extend(Mrss::LiteConstraints)
config.include(ClientRegistryMacros)
config.include(MongosMacros)
config.extend(Mongo::Macros)
+ # Used for spec/solo/*
+ def require_solo
+ before(:all) do
+ unless %w(1 true yes).include?(ENV['SOLO'])
+ skip 'Set SOLO=1 in environment to run solo tests'
+ end
+ end
+ end
+
if SpecConfig.instance.ci?
SdamFormatterIntegration.subscribe
config.add_formatter(JsonExtFormatter, File.join(File.dirname(__FILE__), '../tmp/rspec.json'))
config.around(:each) do |example|