fix count in spec

This commit is contained in:
Stella Rouzi 2014-11-27 21:59:41 +02:00
parent 2511a7dd51
commit 5d444143ea

View file

@ -13,7 +13,7 @@ feature EventType do
conference_id: conference.short_title) conference_id: conference.short_title)
within('table#event_types') do 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 end
# Add event type # Add event type
@ -33,7 +33,7 @@ feature EventType do
expect(page.has_content?('Party')).to be true expect(page.has_content?('Party')).to be true
expect(page.has_content?('13042')).to be true expect(page.has_content?('13042')).to be true
expect(page.has_content?('#e4e4e4')).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 end
# Remove event type # Remove event type
@ -43,7 +43,7 @@ feature EventType do
expect(flash).to eq('Event type successfully deleted.') expect(flash).to eq('Event type successfully deleted.')
within('table#event_types') do 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 expect(page.has_content?('Party')).to be false
end end
end end