###前提・実現したいこと
ここに質問したいことを詳細に書いてください
(例)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のプロセス
あなたの回答
tips
プレビュー