-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Partial Solution to Chitter Challenge #1230
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, you can easily build off of this base.
|
||
visit '/chitter' | ||
|
||
expect(page).to have_content("Third peep") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a way to test if this is the first element on the web page. This would test if the peeps are in reverse order with most recent first. Something like, expect(first('.box')).to have_content("Third peep)
end | ||
|
||
def self.create(message:) | ||
if ENV['ENVIRONMENT'] == 'test' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can refactor these into separate files so you DRY out the connections.
No description provided.