-
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
chitter-challenge finsihed #2037
base: main
Are you sure you want to change the base?
Conversation
finished challange |
end | ||
|
||
get '/stream' do | ||
repo = PostsRepository.new |
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.
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 |
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.
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> |
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 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 |
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.
this can be refactored
No description provided.