fixes specs
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<section data-annotatable-type="legislation"
|
||||
data-annotatable-id="<%= @legislation.id %>">
|
||||
<div class="row margin-top">
|
||||
<div class="small-12 medium-9 small-centered column">
|
||||
<div class="row margin-top">
|
||||
<div class="small-12 medium-9 small-centered column">
|
||||
<section data-annotatable-type="legislation"
|
||||
data-annotatable-id="<%= @legislation.id %>">
|
||||
<h1 class="text-center"><%= @legislation.title %></h1>
|
||||
<div id="legislation_body"><%= @legislation.body %></div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -230,7 +230,7 @@ FactoryGirl.define do
|
||||
factory :annotation do
|
||||
quote "ipsum"
|
||||
text "Loremp ipsum dolor"
|
||||
ranges [{"start"=>"/div[2]", "startOffset"=>5, "end"=>"/div[2]", "endOffset"=>10}]
|
||||
ranges [{"start"=>"/div[1]", "startOffset"=>5, "end"=>"/div[1]", "endOffset"=>10}]
|
||||
legislation
|
||||
user
|
||||
end
|
||||
|
||||
@@ -74,8 +74,8 @@ feature 'Legislation' do
|
||||
|
||||
scenario 'Search' do
|
||||
legislation = create(:legislation)
|
||||
annotation1 = create(:annotation, legislation: legislation, text: "my annotation", ranges: [{"start"=>"/div[2]", "startOffset"=>5, "end"=>"/div[2]", "endOffset"=>10}])
|
||||
annotation2 = create(:annotation, legislation: legislation, text: "my other annotation", ranges: [{"start"=>"/div[2]", "startOffset"=>12, "end"=>"/div[2]", "endOffset"=>19}])
|
||||
annotation1 = create(:annotation, legislation: legislation, text: "my annotation", ranges: [{"start"=>"/div[1]", "startOffset"=>5, "end"=>"/div[1]", "endOffset"=>10}])
|
||||
annotation2 = create(:annotation, legislation: legislation, text: "my other annotation", ranges: [{"start"=>"/div[1]", "startOffset"=>12, "end"=>"/div[1]", "endOffset"=>19}])
|
||||
|
||||
visit legislation_path(legislation)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user