From 5d444143eaa558d1cfb1410af15ebd48c4c442cb Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Thu, 27 Nov 2014 21:59:41 +0200 Subject: [PATCH] fix count in spec --- spec/features/event_types_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/event_types_spec.rb b/spec/features/event_types_spec.rb index b47cb73e..e3e33a8c 100644 --- a/spec/features/event_types_spec.rb +++ b/spec/features/event_types_spec.rb @@ -13,7 +13,7 @@ feature EventType do conference_id: conference.short_title) within('table#event_types') do - expect(page.assert_selector('tr', count: 3)).to be true + expect(page.assert_selector('tr', count: 4)).to be true end # Add event type @@ -33,7 +33,7 @@ feature EventType do expect(page.has_content?('Party')).to be true expect(page.has_content?('13042')).to be true expect(page.has_content?('#e4e4e4')).to be true - expect(page.assert_selector('tr', count: 4)).to be true + expect(page.assert_selector('tr', count: 5)).to be true end # Remove event type @@ -43,7 +43,7 @@ feature EventType do expect(flash).to eq('Event type successfully deleted.') within('table#event_types') do - expect(page.assert_selector('tr', count: 3)).to be true + expect(page.assert_selector('tr', count: 4)).to be true expect(page.has_content?('Party')).to be false end end