spec/controllers エラー @controller is nil: make sure you set it in your test's setup method.
エラー
controller is nil: make sure you set it in your test's setup method.
原因
- controller名を""(ダブルクオート)で囲ってた
describe "YourController" do … end
対処
- ダブルクオートを外す
describe YourController do … end
感想
通常のエグザンプルではだいたいダブルクオートで囲むので、気を抜くとやってしまいそうですね。