teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

書式改善

2019/01/08 04:31

投稿

kwtkwt
kwtkwt

スコア21

title CHANGED
File without changes
body CHANGED
@@ -26,17 +26,17 @@
26
26
  get :show, params: { id: product.id }
27
27
  end
28
28
 
29
- # リクエストは200 OKとなること
29
+
30
30
  it 'has the proper http status' do
31
31
  expect(response.status).to eq 200
32
32
  end
33
33
 
34
- # showテンプレートを表示すること
34
+
35
35
  it 'show page' do
36
36
  expect(response).to render_template :show
37
37
  end
38
38
 
39
- # @productにidを割り当てること
39
+
40
40
  it 'assigns @product' do
41
41
  expect(assigns(:product)).to eq product
42
42
  end
@@ -62,4 +62,4 @@
62
62
  the missing elements were: [#<Spree::Product id: 446, name: "Product #10 - 3677", description: "As seen on
63
63
  TV!", available_on: "...at: "2019-01-08 04:27:38", updated_at: "2019-01-08 04:27:38", promotionable: true, meta_title:
64
64
  nil>]
65
- # ./spec/controllers/products_controller_spec.rb:30:in `block (3 levels) in <top (required)>'
65
+ ./spec/controllers/products_controller_spec.rb:30:in `block (3 levels) in <top (required)>'