We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the Slack channel of #ruby-rails-basics we were discussing about the use case of subject in RSpec tests.
In the tech guide about subject, it recommends using it when you are creating an instance of the described class.
As some people check out, they also recommend to use subject when describing an element we are currently testing witch makes sense.
To be more clear, when a controller is being tested, and we make a request, our subject should be request instead of an instance of the controller.
It probably is a really basic thing to clarify, but it may be helpful to specify that to avoid confusion.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the Slack channel of #ruby-rails-basics we were discussing about the use case of subject in RSpec tests.
In the tech guide about subject, it recommends using it when you are creating an instance of the described class.
As some people check out, they also recommend to use subject when describing an element we are currently testing witch makes sense.
To be more clear, when a controller is being tested, and we make a request, our subject should be request instead of an instance of the controller.
It probably is a really basic thing to clarify, but it may be helpful to specify that to avoid confusion.
The text was updated successfully, but these errors were encountered: