Skip to content

Commit

Permalink
Refs #11: red test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBrendel committed Nov 3, 2017
1 parent 9f438ab commit c057e95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/models/author_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
expect(author.name).to eq('Alan Turing')
end

it 'should not be valid without a last name' do
author = Author.new(id: 42, first_name: 'Alan', homepage: 'http://wikipedia.org/Alan_Turing')
expect(author).not_to be_valid
end

end

0 comments on commit c057e95

Please sign in to comment.