0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWSのcloud9で「rails test:integration」ができない問題の対処

Last updated at Posted at 2021-03-15

初歩的な問題だとは思いますが、備忘録として、
また、同じところで躓くどなたかのお役に立てればと思って書いていきます。

・ 状況
⇒ rails on tutorial 5章 5.3.3 リスト5-33にてcloud9
を用いての、統合テストとして、rails test:integrationを実行。
しかし、"assert_template has been extracted to a gem. To continue using it, add gem 'rails-controller-testing' to your Gemfile." のエラーメッセージが登場。
image.png

・ 対処方法

  1. sample_appのGemfileを開く
    2. エラーメッセージの記載の通り、gem 'rails-controller-testing' を書き加える
    image.png

3. bundle installをする
image.png

  1. rails test:integrationをする
    image.png

以上になります。ありがとうございます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?