You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following case, I often use rspec-request_describer to write a request spec. So in the case of String, I don't think it will necessarily match the file path. WDYT? Is there a way to know that in the case of string, it always indicates Class?
I like it more descriptive and human-readable, with explicit URL defined in ‘def request’ or subject.
And i don’t see why the file name should not match the top-level docstring.
rspec-request_describer is a plugin for RSpec, but it is useful to use it as follows, but if you use such a plug-in, it may not be a big problem because Exclude will not change the behavior in the first place before and after the change
# `RSpec::RequestDescriber` provides `subject` from its top-level description.# subject will be `get('/users')`.RSpec.describe'GET /users'doit'returns 200'dosubjectexpect(response).tohave_http_status(200)endend
RSpec/FilePath
intoRSpec/SpecFilePathSuffix
andRSpec/SpecFilePathFormat
#1698 (comment)Would it detect:
RSpec/FilePath
intoRSpec/SpecFilePathSuffix
andRSpec/SpecFilePathFormat
#1698 (comment) refactor to avoid nested loops?The text was updated successfully, but these errors were encountered: