From 9ebcebb2abae7459cbb0ce8da7a4c38fb618e80a Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 16 Dec 2015 16:21:40 +0100 Subject: [PATCH] makes more tests green --- spec/features/legislation_spec.rb | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/spec/features/legislation_spec.rb b/spec/features/legislation_spec.rb index fc9930d57..dfde8674b 100644 --- a/spec/features/legislation_spec.rb +++ b/spec/features/legislation_spec.rb @@ -26,15 +26,11 @@ feature 'Legislation' do fill_in 'annotator-field-0', with: 'this is my annotation' page.find(:css, ".annotator-controls a[href='#save']").click - within ".annotate" do - expect(page).to have_css ".annotator-hl[data-annotation-id]" - end + expect(page).to have_css ".annotator-hl[data-annotation-id]" visit legislation_path(legislation) - within ".annotate" do - expect(page).to have_css ".annotator-hl[data-annotation-id]" - end + expect(page).to have_css ".annotator-hl[data-annotation-id]" end scenario 'Update' do @@ -79,10 +75,8 @@ feature 'Legislation' do visit legislation_path(legislation) - within ".annotate" do - expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation1.id}']" - expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation2.id}']" - end + expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation1.id}']" + expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation2.id}']" end end