spec/spec_helper.rb in dbview_cti-0.2.1 vs spec/spec_helper.rb in dbview_cti-0.2.2
- old
+ new
@@ -2,11 +2,10 @@
ENV["RAILS_ENV"] ||= 'test'
rails_major_version = 3
rails_major_version = ENV["RAILS_VERSION"][0] unless ENV["RAILS_VERSION"].nil?
require File.expand_path("../dummy-rails-#{rails_major_version}/config/environment", __FILE__)
require 'rspec/rails'
-require 'rspec/autorun'
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
@@ -35,6 +34,17 @@
# Run specs in random order to surface order dependencies. If you find an
# order dependency and want to debug it, you can fix the order by providing
# the seed, which is printed after each run.
# --seed 1234
config.order = "random"
+
+ # rspec-rails 3 will no longer automatically infer an example group's spec type
+ # from the file location. You can explicitly opt-in to the feature using this
+ # config option.
+ # To explicitly tag specs without using automatic inference, set the `:type`
+ # metadata manually:
+ #
+ # describe ThingsController, :type => :controller do
+ # # Equivalent to being in spec/controllers
+ # end
+ config.infer_spec_type_from_file_location!
end