From 89896a94ee1605182c43de759403ca175d37144d Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 16 Dec 2015 19:10:59 +0100 Subject: [PATCH] renames legislation body id --- app/views/legislations/show.html.erb | 2 +- spec/features/legislation_spec.rb | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/legislations/show.html.erb b/app/views/legislations/show.html.erb index 6c4c75be0..54c91fbf9 100644 --- a/app/views/legislations/show.html.erb +++ b/app/views/legislations/show.html.erb @@ -2,6 +2,6 @@ data-annotatable-id="<%= @legislation.id %>">
<%= @legislation.title %>
-
<%= @legislation.body %>
+
<%= @legislation.body %>
diff --git a/spec/features/legislation_spec.rb b/spec/features/legislation_spec.rb index d555d0bb3..b3704260d 100644 --- a/spec/features/legislation_spec.rb +++ b/spec/features/legislation_spec.rb @@ -21,9 +21,8 @@ feature 'Legislation' do visit legislation_path(legislation) - page.find(:css, "#test").double_click + page.find(:css, "#legislation_body").double_click page.find(:css, ".annotator-adder button").click - fill_in 'annotator-field-0', with: 'this is my annotation' page.find(:css, ".annotator-controls a[href='#save']").click