Sites#7
Open
iwhurtafly wants to merge 4 commits intomasterfrom
Open
Conversation
Contributor
|
Contributor
ですです!実現したい価値や、機能にフューチャーした内容でブランチを切りましょう。 |
Member
Author
OKです! 先に進みたいので、このプルリクエストをマージしますか? |
Contributor
テストで何を担保したいかを意識してればよいですが、ここはモデルのテスト欲しいですね。
ok! |
Contributor
|
url_is_heroku? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SiteモデルにValidationを追加しました。その他、コードに微調整が入っているのは、今回は了承下さい。また、前回strong parametersを検討していた際に追加した「validates_url_format_of.rb」を削除し忘れていました。次回のコミットで削除します。今回のコミット以降は、奇麗な単位でコミットして行けると思います。(次回のコミットには、「validates_url_format_of.rb」を削除したという履歴が残ってしまうでしょうが。。)
最後に2つ質問させて下さい。
・今回、url_is_herokuというメソッドを定義していますが、テストの書き方が分かりませんでした。
アドバイス頂けますか?
・今回のプルリクエストが取り込まれた場合、今のブランチは削除して、別ブランチで作業ですよね?
(前にも聞いたかもしれませんが、失念してしまいました。。)