Re: [rspec-users] Clear a stub

2008-07-31 Thread Steve
Scott Taylor wrote: Of course there is a way - the question is, do you really want to use it? After seeing that, no, not really. I agree with you on it likely messing with clarity. I opted to rework my specs. It wasn't my preferred option, but there really wasn't a better way. Thanks to

[rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread Bastien
I can't figure out what I do wrong there, I have a nested controller which is defined as a singular resource, the routing works properly, but inside my specs the request never goes through the show action. I keep on getting this error : Spec::Mocks::MockExpectationError in

Re: [rspec-users] Can't access actions of a singular nested resource

2008-07-31 Thread aslak hellesoy
On Thu, Jul 31, 2008 at 4:06 PM, Bastien [EMAIL PROTECTED] wrote: I can't figure out what I do wrong there, I have a nested controller which is defined as a singular resource, the routing works properly, but inside my specs the request never goes through the show action. I keep on getting

[rspec-users] Writing specs for a plugin module for ActionController

2008-07-31 Thread Leslie Freeman
Hello, I'm trying to spec a plugin that includes a module that adds functionality to ActionController below is what I've come up with: # vendor/plugins/custom_attribute_fu/spec/active_record_spec.rb require File.dirname(__FILE__) + '/spec_helper' class TestPerson ActiveRecord::Base end