[rspec-devel] stubs

David Chelimsky dchelimsky at gmail.com
Mon Oct 2 18:33:30 EDT 2006


On 10/2/06, David Chelimsky <dchelimsky at gmail.com> wrote:
> On 10/2/06, Brian Takita <brian.takita at gmail.com> wrote:
> > > I found out something else of interest. On AR derivatives, this works:
> > >
> > >    (class << Person; self; end).stub!(:create).with(false
> > > )
> > >
> > > but this doesn't
> > >
> > >    Person.stub!(:create).with(false)
> >
> > Interesting. I'll be able to look at this tonight.
>
> I checked in a file w/ some stuff commented:

That's in the stubs branch.

>
> vendor/rspec_on_rails/spec/controllers/person_controller_spec.rb
>
> That should give you an idea of some of the behaviour I'm seeing. Very
> weird stuff. Hope you enjoy it!
>
> David
>


More information about the rspec-devel mailing list