Skip to content

Commit

Permalink
Refs #17: red test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent c7cf4de commit a7b90b8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/features/author/new_author_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rails_helper'

describe 'New author page', type: :feature do
it 'should render withour error' do
it 'should render without error' do
visit new_author_path
end

Expand Down
15 changes: 15 additions & 0 deletions spec/features/paper/new_paper_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'rails_helper'

describe 'New paper page', type: :feature do
it 'should render without error' do
visit new_paper_path
end

it 'should have text input for first title, venue and year' do
visit new_paper_path

expect(page).to have_field('Title')
expect(page).to have_field('Venue')
expect(page).to have_field('Year')
end
end

0 comments on commit a7b90b8

Please sign in to comment.