-
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.
Add default rake test task and setup for tests
- Loading branch information
Zuzanna Stolińska
committed
Apr 18, 2017
1 parent
2eb3a7b
commit c9b5abc
Showing
4 changed files
with
35 additions
and
63 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,4 +1,9 @@ | ||
.bundle/ | ||
log/*.log | ||
test/dummy/tmp/ | ||
test/dummy/db/*.sqlite3 | ||
test/dummy/db/*.sqlite3-journal | ||
test/dummy/log/*.log | ||
swagger_ui_engine-*.gem | ||
|
||
test/dummy/log/test.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Configure Rails Environment | ||
ENV['RAILS_ENV'] = 'test' | ||
|
||
require File.expand_path('../../test/dummy/config/environment.rb', __FILE__) | ||
require 'rails/test_help' | ||
|
||
# Filter out Minitest backtrace while allowing backtrace from other libraries | ||
# to be shown. | ||
Minitest.backtrace_filter = Minitest::BacktraceFilter.new | ||
|
||
# Load fixtures from the engine | ||
if ActiveSupport::TestCase.respond_to?(:fixture_path=) | ||
ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__) | ||
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path | ||
ActiveSupport::TestCase.file_fixture_path = ActiveSupport::TestCase.fixture_path + '/files' | ||
ActiveSupport::TestCase.fixtures :all | ||
end |