質問編集履歴

1

加筆

2020/04/23 11:18

投稿

annaPanda
annaPanda

スコア130

test CHANGED
File without changes
test CHANGED
@@ -20,9 +20,29 @@
20
20
 
21
21
  ```
22
22
 
23
+ require 'rails_helper'
24
+
25
+
26
+
23
- RSpec.feature "", type: :feature do
27
+ RSpec.feature "Ryoteis", type: :feature do
24
28
 
25
29
  scenario "", js: true do
30
+
31
+ member = FactoryBot.create(:member, grade: 3)
32
+
33
+ login_as(member, scope: :member)
34
+
35
+ visit reservations_path
36
+
37
+ click_on "新規予約"
38
+
39
+ expect(page).to have_content '登録'
40
+
41
+ end
42
+
43
+ end
44
+
45
+
26
46
 
27
47
  ```
28
48