New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ApplicationTestCase #28243
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ module Generators | |
# destination File.expand_path("../tmp", File.dirname(__FILE__)) | ||
# setup :prepare_destination | ||
# end | ||
class TestCase < ActiveSupport::TestCase | ||
class TestCase < ApplicationTestCase | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should also generate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It still means that Rails must provide the structure for that in generators, yes? |
||
include Rails::Generators::Testing::Behaviour | ||
include Rails::Generators::Testing::SetupAndTeardown | ||
include Rails::Generators::Testing::Assertions | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea of
ApplicationTestCase
applies to Rails projects, not the Rails test suite itself.