spec/spec_helper.rb in mtdevise-1.8.6 vs spec/spec_helper.rb in mtdevise-2.0.0b
- old
+ new
@@ -6,38 +6,21 @@
require 'rspec/autorun'
require 'shoulda/matchers'
require 'capybara/rspec'
require "factory_girl"
require "database_cleaner"
-if ENV["RAILS_ENV"] == 'test'
- unless ENV["SKIP_COV"]
- require 'simplecov'
- require 'coveralls'
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
- SimpleCov::Formatter::HTMLFormatter,
- Coveralls::SimpleCov::Formatter
- ]
- if ENV['CIRCLE_ARTIFACTS']
- dir = File.join("..", "..", "..", ENV['CIRCLE_ARTIFACTS'], "coverage")
- SimpleCov.coverage_dir(dir)
- end
- # SimpleCov.start 'rails'
- SimpleCov.start 'rails' do
- add_filter 'app/secrets'
- end
- end
-end
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}
# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
RSpec.configure do |config|
+
config.include FactoryGirl::Syntax::Methods
config.warnings = false
# ## Mock Framework
#
# If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
@@ -86,6 +69,6 @@
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :rspec
with.library :rails
end
-end
\ No newline at end of file
+end