Skip to content

Commit

Permalink
failed test for #24
Browse files Browse the repository at this point in the history
  • Loading branch information
akuchinke committed Nov 9, 2017
1 parent ad1d8b5 commit ebbb449
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/papers/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p><strong>Papers</strong></p>

<%= link_to 'Add author', new_author_path %>


<table>
<tr>
Expand Down
18 changes: 18 additions & 0 deletions spec/features/paper/index_paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
expect(page).to have_content(@paper.year)
end

it "Link to the paper creation page" do
visit papers_path
expect(page).to have_css('a', :text => /[aA]dd paper/i)
end
it "Link to the paper details pages" do
visit papers_path
expect(page).to have_css('a', :text => /[sS]how/i)
end
it "Link to the paper edit page" do
visit papers_path
expect(page).to have_css('a', :text => /[eE]dit/i)
end

it "paper entries should have delete button" do
visit papers_path
expect(page).to have_css('a', :text => /[dD]estroy/i)
end



end

0 comments on commit ebbb449

Please sign in to comment.