legislation annotation spec cleanup

This commit is contained in:
kikito
2015-12-15 18:35:45 +01:00
committed by rgarcia
parent 1702426414
commit 2ced669821

View File

@@ -26,17 +26,13 @@ feature 'Legislation' do
page.find(:css, ".annotator-controls a[href='#save']").click
within ".annotate" do
expect(page).to have_css ".annotator-hl"
end
annotation = Annotation.last
within ".annotate" do
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation.id}']"
expect(page).to have_css ".annotator-hl[data-annotation-id]"
end
visit legislation_path(legislation)
within ".annotate" do
expect(page).to have_css ".annotator-hl[data-annotation-id='#{annotation.id}']"
expect(page).to have_css ".annotator-hl[data-annotation-id]"
end
end
@@ -59,4 +55,4 @@ feature 'Legislation' do
end
## Notes logged in and not logged in users
## Notes logged in and not logged in users