Anyone know how to get around this? On OSX, trying to get RSpec running with Rails 3.0.7. Full details at: https://gist.github.com/1017044
it \"renders but
this can happen under the following conditions:
your spec does not have :type => :controller
[type: :controller
in newer Ruby]
your spec is not in the controllers folder or you not have set config.infer_spec_type_from_file_location!
Either #1 or #2 must be setup for your spec. Also, this can happen under this condition as well:
require 'spec_helper'
instead of using the newer require 'rails_helper'
. You will note that rails_helper
now includes spec_helper
(to generate both see the Rspec installation steps)cross referencing GH issue https://github.com/rails/rails-controller-testing/issues/36