-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] コメントをつけられるようにする [closes #35] #64
base: master
Are you sure you want to change the base?
Conversation
0b5e9be
to
05a9b7a
Compare
@@ -2,6 +2,7 @@ class User < ActiveRecord::Base | |||
include Authenticator | |||
|
|||
has_many :posts, foreign_key: 'created_by_id' | |||
has_many :comments, foreign_key: 'commented_by_id' |
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.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
a0a0ad8
to
a7d83b3
Compare
click_button 'create comment' | ||
|
||
within '.comment__body' do | ||
expect(page).must_have_content 'Lorem ipsum dolor sit amet' |
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.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
e72987d
to
efd2762
Compare
resources :posts | ||
resources :users, only: %i( index show ) | ||
resources :posts do | ||
resources :comments, only: %i( index new create ) |
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 not use spaces inside percent literal delimiters.
efd2762
to
4e175b0
Compare
4e175b0
to
f81c38f
Compare
…anna create classes for comment author
f81c38f
to
09335e1
Compare
#77 が master マージされてからこのブランチをマージする必要があります。doneやってること
投稿に対してコメントをつけられるようにします。
TODO
対応 issue
connects to #35