diff --git a/spec/features/paper/index_paper_spec.rb b/spec/features/paper/index_paper_spec.rb index 9c0db1c..f81f1f6 100644 --- a/spec/features/paper/index_paper_spec.rb +++ b/spec/features/paper/index_paper_spec.rb @@ -5,4 +5,14 @@ author = FactoryGirl.create :paper visit papers_path end + + it "should display title, venue and year of all papers" do + paper = FactoryGirl.create :paper + paper.save + visit papers_path + expect(page).to have_css('td', :text => 'COMPUTING MACHINERY AND INTELLIGENCE') + expect(page).to have_css('td', :text => 'Mind 49: 433-460') + expect(page).to have_css('td', :text => 1950) + + end end