spec/spec_helper.rb in fathom-0.3.7 vs spec/spec_helper.rb in fathom-0.5.0
- old
+ new
@@ -1,16 +1,12 @@
-$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-
-require 'fathom'
+$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
-require 'rspec/autorun'
+require 'fathom'
-include Fathom
+# Requires supporting files with custom matchers and macros, etc,
+# in ./support/ and its subdirectories.
+Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
-# Requires supporting ruby files in spec/support/ and its subdirectories.
-Dir[File.join(File.dirname(__FILE__), "support/**/*.rb")].each {|f| require f}
-
-RSpec.configure do |c|
- # c.filter_run :focus => true
- c.filter_run_excluding :slow => true
+RSpec.configure do |config|
+ config.filter_run_excluding :slow => true
end