forked from spree-contrib/spree_related_products
-
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.
- Loading branch information
1 parent
2eea5e1
commit aa13364
Showing
7 changed files
with
10 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,10 @@ | ||
require 'simplecov' | ||
SimpleCov.start do | ||
add_filter 'spec' | ||
add_group 'Controllers', 'app/controllers' | ||
add_group 'Overrides', 'app/overrides' | ||
add_group 'Models', 'app/models' | ||
add_group 'Libraries', 'lib' | ||
end | ||
# Configure Rails Environment | ||
ENV['RAILS_ENV'] = 'test' | ||
|
||
ENV['RAILS_ENV'] ||= 'test' | ||
require File.expand_path('../dummy/config/environment.rb', __FILE__) | ||
|
||
begin | ||
require File.expand_path('../dummy/config/environment', __FILE__) | ||
rescue LoadError | ||
puts 'Could not load dummy application. Please ensure you have run `bundle exec rake test_app`' | ||
exit | ||
end | ||
require 'spree_dev_tools/rspec/spec_helper' | ||
|
||
require 'rspec/rails' | ||
require 'shoulda/matchers' | ||
require 'ffaker' | ||
require 'pry' | ||
require 'capybara-select-2' | ||
|
||
RSpec.configure do |config| | ||
config.fail_fast = false | ||
config.filter_run focus: true | ||
config.run_all_when_everything_filtered = true | ||
config.raise_errors_for_deprecations! | ||
config.infer_spec_type_from_file_location! | ||
|
||
config.expect_with :rspec do |expectations| | ||
expectations.syntax = :expect | ||
end | ||
|
||
config.order = :random | ||
|
||
config.include CapybaraSelect2 | ||
end | ||
|
||
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |file| require file } | ||
# Requires supporting ruby files with custom matchers and macros, etc, | ||
# in spec/support/ and its subdirectories. | ||
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].sort.each { |f| require f } |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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