From ba681422f2ddfe3f4cd4e6f49fd9eb078c011d12 Mon Sep 17 00:00:00 2001 From: Adrian Date: Thu, 9 Nov 2017 20:26:49 +0100 Subject: [PATCH] failed test for #27 --- app/views/papers/index.html.erb | 2 +- spec/features/paper/edit_paper_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/papers/index.html.erb b/app/views/papers/index.html.erb index a320a61..12d8176 100644 --- a/app/views/papers/index.html.erb +++ b/app/views/papers/index.html.erb @@ -16,7 +16,7 @@ <%= paper.year %> <%= link_to 'Show', paper_path(paper) %> <%= link_to 'Edit', edit_paper_path(paper) %> - <%= link_to 'Destroy', paper_path(paper), method: :delete, data: { confirm: 'Are you sure?' } %> + <% end %> \ No newline at end of file diff --git a/spec/features/paper/edit_paper_spec.rb b/spec/features/paper/edit_paper_spec.rb index 4a95aaa..bc12658 100644 --- a/spec/features/paper/edit_paper_spec.rb +++ b/spec/features/paper/edit_paper_spec.rb @@ -8,7 +8,7 @@ visit edit_paper_path(@paper) end - it "Save changed" do + it "Save changes" do visit edit_paper_path(@paper) fill_in 'Title', with: 'A new Title' click_button 'Save Paper'