From 5a6a915a1b2aa99c3069fc29abf4f85513056c00 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Wed, 16 Dec 2015 19:19:04 +0100 Subject: [PATCH] removes unused test code --- spec/features/legislation_spec.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spec/features/legislation_spec.rb b/spec/features/legislation_spec.rb index b3704260d..db38f14a6 100644 --- a/spec/features/legislation_spec.rb +++ b/spec/features/legislation_spec.rb @@ -17,7 +17,7 @@ feature 'Legislation' do background { login_as user } scenario 'Create' do - legislation = create(:legislation, body: "In order to achieve...") + legislation = create(:legislation) visit legislation_path(legislation) @@ -38,8 +38,8 @@ feature 'Legislation' do end scenario 'Update' do - legislation = create(:legislation, body: "In order to achieve...") - annotation = create(:annotation, legislation: legislation, text: "my annotation" , quote: "In order to achieve...", ranges: [{"start"=>"/div[2]", "startOffset"=>12, "end"=>"/div[2]", "endOffset"=>19}]) + legislation = create(:legislation) + annotation = create(:annotation, legislation: legislation, text: "my annotation") visit legislation_path(legislation) @@ -59,8 +59,8 @@ feature 'Legislation' do end scenario 'Destroy' do - legislation = create(:legislation, body: "In order to achieve...") - annotation = create(:annotation, user: user, legislation: legislation, text: "this one" , quote: "achieve", ranges: [{"start"=>"/div[2]", "startOffset"=>12, "end"=>"/div[2]", "endOffset"=>19}]) + legislation = create(:legislation) + annotation = create(:annotation, legislation: legislation) visit legislation_path(legislation) @@ -73,9 +73,9 @@ feature 'Legislation' do end scenario 'Search' do - legislation = create(:legislation, body: "In order to achieve...") - annotation1 = create(:annotation, legislation: legislation, text: "my annotation" , quote: "achieve", ranges: [{"start"=>"/div[2]", "startOffset"=>5, "end"=>"/div[2]", "endOffset"=>10}]) - annotation2 = create(:annotation, legislation: legislation, text: "my other annotation" , quote: "achieve", ranges: [{"start"=>"/div[2]", "startOffset"=>12, "end"=>"/div[2]", "endOffset"=>19}]) + 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}]) visit legislation_path(legislation) @@ -91,4 +91,4 @@ feature 'Legislation' do end -## Notes logged in and not logged in users +## Notes logged in and not logged in users \ No newline at end of file