Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swt2public opened this issue Oct 19, 2018 · 0 comments
Open

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

swt2public opened this issue Oct 19, 2018 · 0 comments

Comments

@swt2public
Copy link

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 NameError: uninitialized constant Author

Estimated progress: 11% complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant