spec/spec_helper.rb in spotlight-0.0.5 vs spec/spec_helper.rb in spotlight-0.0.6

- old
+ new

@@ -1,13 +1,20 @@ -$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) + +require 'rubygems' require 'spotlight' -require 'spec' -require 'spec/autorun' -system('mdimport ' + File.dirname(__FILE__)) +# This file was generated by the `rspec --init` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# Require this file using `require "spec_helper.rb"` to ensure that it is only +# loaded once. +# +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + config.treat_symbols_as_metadata_keys_with_true_values = true + config.run_all_when_everything_filtered = true + config.filter_run :focus -Spec::Runner.configure do |config| def fixture(filename) File.dirname(__FILE__) + '/fixtures/' + filename end end