search for: admin_controller_spec

Displaying 4 results from an estimated 4 matches for "admin_controller_spec".

2007 May 02
13
RSpec 0.8.2 pain, missing spec/rails?
...te:~/svn/novalis morten$ rake spec (in /Users/morten/svn/novalis) /opt/local/bin/ruby -I"/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/lib" "/opt/local/lib/ruby/gems/1.8/gems/rspec-0.8.2/bin/spec" "spec/controllers/account_controller_spec.rb" "spec/controllers/admin_controller_spec.rb" "spec/controllers/auhtenticate_controller_spec.rb" "spec/controllers/bar_controller_spec.rb" "spec/controllers/calendar_test_controller_spec.rb" "spec/controllers/manager_controller_spec.rb" "spec/controllers/reports_controller_spec.rb&quot...
2007 Jun 11
2
Testing create in Rails controller
...to create'' You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occurred while evaluating nil.save /Users/smingins/Work/depot/config/../app/controllers/ admin_controller.rb:25:in `create'' ./spec/controllers/admin_controller_spec.rb:41: Finished in 0.226535 seconds I have been playing around with things but without any luck. The nil error does strike me as rather odd but the test reads as I would have thought it should ... but obviously I am missing something. Cheer Shane
2008 Aug 15
7
Autotest and subclasses / namespaces
I am writing a controller admin/cities_controller.rb it inherits from AdminController, so it''s defined like class Admin::CitiesController > AdminController Whenever I save the controller file, autotest freaks out: uninitialized constant Admin::AdminController (NameError) I''m pretty used to just hitting CTRL-C to get autotest to re-load all the files, or flicking to
2007 Apr 13
21
ZenTest autotest now handles RSpec, yay!
Josh Knowles http://joshknowles.com/ just let me know that ZenTest Autotest 3.50 now handles your RSpec specs. http://blog.zenspider.com/archives/2007/04/zentest_version_350_has_been_released.html That''s a great news. Josh also shared with me a quick hack to make autotest work with only the RSpec plugin installed. Add the following into your ~/.autotest file