hpi-swt2-exercise / rails-exercise-17-swteam

rails-exercise-17-swteam created by GitHub Classroom
MIT License
0 stars 1 forks source link

Author should have first name, last name, and homepage #5

Closed swt2public closed 6 years ago

swt2public commented 6 years ago

Scenario

When an author is created with first name 'Alan', last name 'Turing', and homepage 'http://wikipedia.org/Alan_Turing' Then an instance of Author should be created

Hints

This feature requests model behavior and should be tested in a model test. Create the file spec/models/author_spec.rb and in the describe block, specify type: :model.

In a model test, behavior is tested directly on the model object, e.g.

author = Author.new(...)
expect(author.first_name).to eq(...)

For more general purpose matchers, see this reference.

Error

Got ActiveRecord::UnknownAttributeError: unknown attribute 'first_name' for Author.

Estimated progress: 11% complete