From 1c4913e6b3e57d99608d2baca1439d4d9381ad10 Mon Sep 17 00:00:00 2001 From: Nils Dittberner Date: Tue, 15 Nov 2016 21:37:45 +0100 Subject: [PATCH] Iteration C4. --- test/controllers/store_controller_test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/controllers/store_controller_test.rb b/test/controllers/store_controller_test.rb index fdd9d95..f7292dc 100644 --- a/test/controllers/store_controller_test.rb +++ b/test/controllers/store_controller_test.rb @@ -4,6 +4,10 @@ class StoreControllerTest < ActionDispatch::IntegrationTest test "should get index" do get store_index_url assert_response :success + assert_select '#columns #side a', minimum: 2 + assert_select '#main .entry', 3 + assert_select 'h3', 'Programming Ruby 1.9' + assert_select '.price', /\$[,\d]+\.\d\d/ end - + end