
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
【Rails】「<投稿内容>... 続きを見る」という部分を作る。(truncateの実装とminitestの追加) - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
【Rails】「<投稿内容>... 続きを見る」という部分を作る。(truncateの実装とminitestの追加) - Qiita
test "micropost.size is 100 over" do # 100文字以上の文章を投稿する content = "This micropost real... test "micropost.size is 100 over" do # 100文字以上の文章を投稿する content = "This micropost really ties the room together. This micropost really ties the room together. This micropost really ties the room together." title = "title" assert_difference 'Micropost.count', 1 do post microposts_path, params: { micropost: { content: content, title: title } } end assert_redirected_to root_url follow_redirect! assert