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

chitter-challenge finsihed #2037

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

Conversation

ruben-wilson
Copy link

No description provided.

@ruben-wilson
Copy link
Author

finished challange

end

get '/stream' do
repo = PostsRepository.new

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need to call __Repository.new every time? Did you experiment with calling it once possibly as a session variable?

expect(response.body).to include("")
end
end
context "POST /new_user/added" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests for if username and/or email already exist

<h1>Chitter</h1>
<ul>
<li><a href="/login">Login</a></li>
<li><a href="/log-out">Log Out </a></li>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can log in if you're already logged in and log out if you're not logged in?

return erb(:new_post)
end

post '/post/added' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be refactored

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