質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Cloud9

Cloud9は、クラウドからのプログラミングが可能になるWebサービス。IDEとしての機能が搭載されており、GitHubやHerokuなど他ツールとの連携も可能です。ブラウザ上で動くため、デバイスに関係なく開発環境を準備できます。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Q&A

0回答

2087閲覧

Rails チュートリアル8章8.2.4レイアウトの変更をテストでエラーが出てしまいます。

YuuyaMiyazaki

総合スコア12

Cloud9

Cloud9は、クラウドからのプログラミングが可能になるWebサービス。IDEとしての機能が搭載されており、GitHubやHerokuなど他ツールとの連携も可能です。ブラウザ上で動くため、デバイスに関係なく開発環境を準備できます。

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

0グッド

1クリップ

投稿2016/12/10 09:43

###前提・実現したいこと
ここに質問したいことを詳細に書いてください
(例)PHP(CakePHP)で●●なシステムを作っています。
■■な機能を実装中に以下のエラーメッセージが発生しました。

###発生している問題・エラーメッセージ
RubyDep: WARNING: Your Ruby is outdated/buggy.
RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: upgrade to 2.3.1.
RubyDep: WARNING: (To disable warnings, see:http://github.com/e2/ruby_dep/wiki/Disabling-warnings )

エラーメッセージ ```:~/workspace/sample_app (log-in-log-out) $ bundle exec rake test RubyDep: WARNING: Your Ruby is outdated/buggy. RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: upgrade to 2.3.1. RubyDep: WARNING: (To disable warnings, see:http://github.com/e2/ruby_dep/wiki/Disabling-warnings ) Started ERROR["test_email_addresses_should_be_unique", UserTest, 2016-11-22 15:03:42 +0000] test_email_addresses_should_be_unique#UserTest (1479827022.98s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_email_validation_should_accept_valid_addresses", UserTest, 2016-11-22 15:03:42 +0000] test_email_validation_should_accept_valid_addresses#UserTest (1479827022.99s) ] 0% Time: 00:00:00, ETA: ??:??:?? LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_email_validation_should_reject_invalid_addresses", UserTest, 2016-11-22 15:03:43 +0000] test_email_validation_should_reject_invalid_addresses#UserTest (1479827023.03s) ] 4% Time: 00:00:00, ETA: 00:00:01 LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_emails_should_be_present", UserTest, 2016-11-22 15:03:43 +0000] test_emails_should_be_present#UserTest (1479827023.04s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_email_addresses_should_be_saved_as_lower-case", UserTest, 2016-11-22 15:03:43 +0000] test_email_addresses_should_be_saved_as_lower-case#UserTest (1479827023.04s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_password_should_have_a_minimum_length", UserTest, 2016-11-22 15:03:43 +0000] test_password_should_have_a_minimum_length#UserTest (1479827023.05s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_name_should_be_present", UserTest, 2016-11-22 15:03:43 +0000] test_name_should_be_present#UserTest (1479827023.05s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_be_valid", UserTest, 2016-11-22 15:03:43 +0000] test_should_be_valid#UserTest (1479827023.06s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_email_should_not_be_too_long", UserTest, 2016-11-22 15:03:43 +0000] test_email_should_not_be_too_long#UserTest (1479827023.06s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_name_should_not_be_too_long", UserTest, 2016-11-22 15:03:43 +0000] test_name_should_not_be_too_long#UserTest (1479827023.07s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_help", StaticPagesControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_help#StaticPagesControllerTest (1479827023.07s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_home", StaticPagesControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_home#StaticPagesControllerTest (1479827023.08s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_contact", StaticPagesControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_contact#StaticPagesControllerTest (1479827023.09s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_about", StaticPagesControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_about#StaticPagesControllerTest (1479827023.09s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_login_with_valid_information_followed_by_logout", UsersLoginTest, 2016-11-22 15:03:43 +0000] test_login_with_valid_information_followed_by_logout#UsersLoginTest (1479827023.10s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_authenticated?_should_return_false_for_a_user_with_nil_digest", UsersLoginTest, 2016-11-22 15:03:43 +0000] test_authenticated?_should_return_false_for_a_user_with_nil_digest#UsersLoginTest (1479827023.11s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_login_with_remembering", UsersLoginTest, 2016-11-22 15:03:43 +0000] test_login_with_remembering#UsersLoginTest (1479827023.11s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_login_without_remembering", UsersLoginTest, 2016-11-22 15:03:43 +0000] test_login_without_remembering#UsersLoginTest (1479827023.12s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_login_with_invalid_information", UsersLoginTest, 2016-11-22 15:03:43 +0000] test_login_with_invalid_information#UsersLoginTest (1479827023.13s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_new", UsersControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_new#UsersControllerTest (1479827023.13s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_should_get_new", SessionsControllerTest, 2016-11-22 15:03:43 +0000] test_should_get_new#SessionsControllerTest (1479827023.14s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_layout_links", SiteLayoutTest, 2016-11-22 15:03:43 +0000] test_layout_links#SiteLayoutTest (1479827023.15s) LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_valid_signup_information", UsersSignupTest, 2016-11-22 15:03:43 +0000] test_valid_signup_information#UsersSignupTest (1479827023.17s)LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it ERROR["test_invalid_signup_information", UsersSignupTest, 2016-11-22 15:03:43 +0000] test_invalid_signup_information#UsersSignupTest (1479827023.18s)LoadError: LoadError: Unable to autoload constant USER, expected /home/ubuntu/workspace/sample_app/app/models/user.rb to define it 24/24: [=======================================================================] 100% Time: 00:00:00, Time: 00:00:00 Finished in 0.21549s 24 tests, 0 assertions, 0 failures, 24 errors, 0 skips ###該当のソースコード Ruby ここにご自身が実行したソースコードを書いてください ```class User < ActiveRecord::Base before_save { email.downcase! } validates :name, presence: true, length: { maximum: 50 } VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-]+(\.[a-z\d\-]+)*\.[a-z]+\z/i validates :email, presence: true, length: { maximum: 255 }, format: { with: VALID_EMAIL_REGEX }, uniqueness: { case_sensitive: false } has_secure_password validates :password, presence: true, length: { minimum: 6 } # 与えられた文字列のハッシュ値を返す def User.digest(string) cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST : BCrypt::Engine.cost BCrypt::Password.create(string, cost: cost) end end ###試したこと 課題に対してアプローチしたことを記載してください ps aux | grep spring ubuntu 2713 0.0 0.0 10556 1632 pts/3 S+ 09:38 0:00 grep --color=auto spring こちらがでました。 kill コマンドしてみましたが、 miyazaki_yuuya:~/workspace/sample_app (log-in-log-out) $ kill 2713 bash: kill: (2713) - No such process となって反応無しでした。 ###補足情報(言語/FW/ツール等のバージョンなど) より詳細な情報 チュートリアルのここをやってみましたが無理でした。 コラム3.4 Unixのプロセス

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問