Skip to content

Troubleshooting Tests

samstickland edited this page Jul 2, 2015 · 2 revisions

undefined method `url_options' for nil:NilClass

Or: undefined method `protect_against_forgery?' for nil:NilClass

Your tests have a controller dependency, which can be fixed by using ::controller to specify the controller in your test case.

class SongCellTest < Cell::TestCase
  controller SongsController