Displaying 1 result from an estimated 1 matches for "ads_controller_spec".
Did you mean:
ad_controller_spec
2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello!
While running bundle exec rake, I receive following error (see in
attached file)
However, my tests are steel passing with command rspec spec/controllers/
Some info:
ads_controller.rb:
class AdsController < ApplicationController
load_and_authorize_resource except: :create
end
ads_controller_spec.rb:
require ''spec_helper''
describe AdsController do
render_views
describe ''Guest role'' do
it "should not display link to new ad" do
visit ads_path
page.should_not have_content(''New'')
end
end
end
Gems:
rails...