This repository has been archived by the owner on Oct 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replace rspec with minitest-spec * remove spork * add simplecov
- Loading branch information
Showing
4 changed files
with
27 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
require "spork" | ||
require "simplecov" | ||
SimpleCov.add_filter "spec" | ||
SimpleCov.command_name "MiniTest" | ||
SimpleCov.start "rails" | ||
|
||
Spork.prefork do | ||
# Loading more in this block will cause your tests to run faster. However, | ||
# if you change any configuration or code from libraries loaded here, you'll | ||
# need to restart spork for it take effect. | ||
ENV["RAILS_ENV"] ||= "test" | ||
require File.expand_path("../dummy/config/environment", __FILE__) | ||
require "minitest/autorun" | ||
require "minitest/pride" | ||
|
||
ENV["RAILS_ENV"] ||= "test" | ||
require File.expand_path("../dummy/config/environment", __FILE__) | ||
require "rspec/rails" | ||
require "rspec/autorun" | ||
|
||
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } | ||
|
||
RSpec.configure do |config| | ||
config.fixture_path = "#{::Rails.root}/spec/fixtures" | ||
config.use_transactional_fixtures = true | ||
config.infer_base_class_for_anonymous_controllers = false | ||
config.order = "random" | ||
end | ||
|
||
end | ||
|
||
Spork.each_run do | ||
# This code will be run each time you run your specs. | ||
|
||
end | ||
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } |