This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/opt/local/bin/ruby /opt/local/lib/ruby/gems/1.8/gems/rspec-1.2.2/bin/spec --autospec spec/controllers/password_resets_controller_spec.rb -O spec/spec.opts | |
F.. | |
1) | |
NoMethodError in 'PasswordResetsController PUT /password_resets/update re-renders the 'edit' template' | |
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.[] | |
/Users/jeff/development/urlagg/app/controllers/password_resets_controller.rb:27:in `update' | |
./spec/controllers/password_resets_controller_spec.rb:26: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.dirname(__FILE__) + '/../../spec_helper' | |
describe Admin::BaseController do | |
subject do | |
Class.new(Admin::BaseController) do | |
def index; end | |
end.new | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map.resources :settings | |
settings.namespace do |setting| | |
setting.resources :units | |
setting.resources :groups | |
end | |
end | |
class Settings::Units < SettingsController | |
end | |
class Settings::Groups < SettingsController |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'singleton' | |
begin | |
require 'daemon_controller' | |
rescue LoadError | |
raise('FATAL: sudo gem install FooBarWidget-daemon_controller -s http://gems.github.com') | |
end | |
## | |
# sudo port install memcached | |
class DaemonMemcache |
NewerOlder