I have been using Rspec for some time and for some reason I get errors on a controller called ReferencesController.
The error says that I should specify the name of the controller using:
describe MyController do
or
describe 'aoeuaoeu' do controller_name :my
I tried both options:
describe ReferencesController do
and
describe 'refs controller' do controller_name :references
But I get an error for both! Any idea what might happen wrong?
Burns
EDIT . Due to the nature of the solution, I reworked the header and added the appropriate code. Here's the error code:
# references_controller.rb
class ReferencesController < ApplicationController def initialize(*args)
And the error:
1) 'ReferencesController GET index should take parameters for a company and return the references' FAILED Controller specs need to know what controller is being specified. You can indicate this by passing the controller to describe(): describe MyController do or by declaring the controller name describe "a MyController" do controller_name :my
source share