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

Partial Solution to Chitter Challenge #1230

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

samkitchen94
Copy link

No description provided.

Copy link

@hughbric hughbric left a 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")

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'

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.

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

Successfully merging this pull request may close these issues.

2 participants