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 (4.0.0),rake (10.1.0),cancan (1.6.10), * rspec-core (2.14.5) * rspec-expectations (2.14.3) * rspec-mocks (2.14.3) * rspec-rails (2.14.0) Can`t find any answer in google or github... Will be thankfully for any help. Attachments: http://www.ruby-forum.com/attachment/8954/bundle_exec_rake.txt -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/147f3074fb89cd7c2a57752dcb6bc789%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
hello, try this branch: https://github.com/dima4p/cancan On Friday, November 22, 2013 4:10:13 PM UTC+4, Ruby-Forum.com User wrote:> > 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 (4.0.0),rake (10.1.0),cancan (1.6.10), > * rspec-core (2.14.5) > * rspec-expectations (2.14.3) > * rspec-mocks (2.14.3) > * rspec-rails (2.14.0) > > Can`t find any answer in google or github... Will be thankfully for any > help. > > Attachments: > http://www.ruby-forum.com/attachment/8954/bundle_exec_rake.txt<http://www.google.com/url?q=http%3A%2F%2Fwww.ruby-forum.com%2Fattachment%2F8954%2Fbundle_exec_rake.txt&sa=D&sntz=1&usg=AFQjCNG8ZZjdtiGoS7VmBhNhhXlGQQrxYQ> > > > -- > Posted via http://www.ruby-forum.com/<http://www.google.com/url?q=http%3A%2F%2Fwww.ruby-forum.com%2F&sa=D&sntz=1&usg=AFQjCNF-tkrBRjiuXpQUcZb0EVS8gtA3Jg>. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/eefb30ab-72ea-4d86-9d54-af49d41e7a47%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
I have tried, but get the same issue. I also tried to set up simple new app, using scaffold and rspec with cancan - and got into same trouble. It seems that i must set up somehow my rspec, but i really don`t know what to do( -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a30f5cd725cf625939fe95939af755a%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.