.save

セーブがしたいんです…

rspec エラーまとめ

・エラー文

Web Console is activated in the test environment, which is
usually a mistake. To ensure it's only activated in development
mode, move it to the development group of your Gemfile:

    gem 'web-console', group: :development

If you still want to run it the test environment (and know
what you are doing), put this in your Rails application
configuration:

    config.web_console.development_only = false

・以下を参考に解決を試みる stonebeach-dakar.hatenablog.com

手順1
config/application.rb

config.web_console.development_only = false

以上を追加

手順2
gemfile

gem 'web-console', '~> 2.0'

しかし、以上ではうまくいかなかった。

・他の原因 DBを作っていなかったことをがわかり、作成。
すると、

Running via Spring preloader in process 3663

User
  #create
    is invalid without a nickname

Finished in 0.00178 seconds (files took 4.23 seconds to load)
1 example, 0 failures

かんせー