Skip to content

Commit

Permalink
Failing test for #41
Browse files Browse the repository at this point in the history
  • Loading branch information
manner committed Nov 9, 2017
1 parent fcebd8f commit adb8d77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions spec/factories/papers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
title "COMPUTING MACHINERY AND INTELLIGENCE"
venue "Mind 49: 433-460"
year 1950
authors {build_list :author, 1}
end
end
6 changes: 6 additions & 0 deletions spec/features/paper/edit_paper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@
paper.reload
expect(paper.venue).to eq('Mind 49')
end

it "should have a select box for the first author" do
paper = FactoryGirl.create :paper
visit edit_paper_path(paper)
expect(page).to have_select('paper_author_id_1', selected: paper.authors.first.name)
end
end

0 comments on commit adb8d77

Please sign in to comment.