On 8/16/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 8/16/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On 8/16/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 8/16/07, Zach Dennis <[EMAIL PROTECTED]> 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? >
I tried on OSX and also Kubuntu Feisty. I think the rspec scaffold generators need to be updated to include ", :behaviour_type => :view". Zach _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
