[rspec-users] undefined method `mock_model' for [RSpec example]:#<Class:0x25550a8>
dchelimsky at gmail.com
Thu Aug 16 13:31:13 EDT 2007
On 8/16/07, Zach Dennis <zach.dennis at gmail.com> wrote:
> On 8/16/07, David Chelimsky <dchelimsky at gmail.com> wrote:
> > On 8/16/07, Zach Dennis <zach.dennis at gmail.com> wrote:
> > > I am getting:
> > > undefined method `mock_model' for [RSpec example]:#<Class:0x25550a8>
> > The fact that it says [RSpec example] means that it's not the right
> > class for a view spec. The plugin knows how to create the right class
> > based on one of two things:
> > If the file is below /spec/views/
> > or
> > describe "...", :behaviour_type => :view do
> > ...
> > If the spec you're running satisfies either of these, you shouldn't be
> > seeing this.
> > >
> > > with my view specs after upgrading to 1.0.8. Is anyone else seeing this?
> > >
> > > To isolate the message I did the following setup:
> > >
> > > - create new rails project (with edge)
> > > - installed rspec and rspec_on_rails
> > > - ran rake spec
> > > - ran script/generate rspec_scaffold products
> > > - tried to run a builtin view spec
> > When you say "builtin view spec," do you mean one that was generated
> > by running the rspec_scaffold generator?
> One that was generated by the rspec_scaffold generator,
Sorry man, it should be working fine. I'm not having that experience
personally - is anybody else?
Zach - what platform are you on?
More information about the rspec-users