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
require'rails_helper'RSpec.describe'Users',:autodocdodescribe'GET /users/:user_id'dolet(:user){create(:user)}shared_examples'page not found'doit{is_expected.toeq(404)}endshared_examples'page accesable 'doit{is_expected.toeq(200)}endinclude_examples'page not found'dolet(:user_id){user.tap(&:destroy).id}let(:description){'When user is not exist'}endinclude_examples'page accesable'dolet(:user_id){user.id}let(:description){'When user exist'}endendend
## GET /users/:user_id- When user exist
### Example#### Request
...
## GET /users/:user_id- When user exist
### Example#### Request
The text was updated successfully, but these errors were encountered:
問題
一つの同じContextの中でinclude_examplesし、その中でdescriptionを定義すると、後勝ちでdescriptionが上書きされます。
以下のような:point_down:の内容を実行したところこのバグを発見しました。
The text was updated successfully, but these errors were encountered: