Hey Guys, I''m getting the following error: 1) NameError in ''ProductsController with a GET to /products NO NAME (Because of Error raised in matcher)'' uninitialized constant Spec::Mocks::BaseExpectation::AnyArgsConstraint /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in `expect_render_mock_proxy'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in `call'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in `expect_render_mock_proxy'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb:67:in `render'' ./spec/controllers/products_controller_spec.rb:6: script/spec:4: The line of code responsible is: get "index" This is actually the first controller spec I''ve written, so I''m really lost. Any Ideas? Thanks, Matt Lins -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071023/98a1b2e6/attachment-0001.html
On 10/23/07, Matt Lins <mlins at webinforem.com> wrote:> > Hey Guys, > > I''m getting the following error: > > 1) > NameError in ''ProductsController with a GET to /products NO NAME (Because > of Error raised in matcher)'' > uninitialized constant > Spec::Mocks::BaseExpectation::AnyArgsConstraint > /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in > `expect_render_mock_proxy'' > /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in > `call'' > /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in > `expect_render_mock_proxy'' > /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb:67:in > `render'' > ./spec/controllers/products_controller_spec.rb:6: > script/spec:4: > > The line of code responsible is: > > get "index" > > This is actually the first controller spec I''ve written, so I''m really > lost. > > Any Ideas?The subject of this email says you''re having a problem upgrading, which would imply that you already had this spec written and it was passing and it started failing when you upgraded. But then you say this is the first controller spec you''ve written. Please clarify.
Sorry about that. This spec was never tried on 1.0.5. I upgraded to 1.0.8 and immediately wrote the spec following the documentation on the Rspec site. I assumed it may have had something to do with the upgrade, since the controller spec was so simple. Just to clarify: I upgraded the Rspec gem to the latest. I upgraded the rspec rails plugin to the latest. I upgraded the rspec_on_rails plugin to the latest. I did this yesterday and ran all of my model tests(all still passed just fine) and began to write some controller specs. Here it is: require File.dirname(__FILE__) + ''/../spec_helper'' describe ProductsController, "with a GET to /products" do it do get "index" response.should render_template("/app/views/products/index.rhtml") end end The error again is: 1) NameError in ''ProductsController with a GET to /products NO NAME (Because of Error raised in matcher)'' uninitialized constant Spec::Mocks::BaseExpectation::AnyArgsConstraint /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in `expect_render_mock_proxy'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in `call'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in `expect_render_mock_proxy'' /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb:67:in `render'' ./spec/controllers/products_controller_spec.rb:6: script/spec:4: David Chelimsky wrote:> On 10/23/07, Matt Lins <mlins at webinforem.com> wrote: > >> Hey Guys, >> >> I''m getting the following error: >> >> 1) >> NameError in ''ProductsController with a GET to /products NO NAME (Because >> of Error raised in matcher)'' >> uninitialized constant >> Spec::Mocks::BaseExpectation::AnyArgsConstraint >> /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:86:in >> `expect_render_mock_proxy'' >> /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in >> `call'' >> /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/render_observer.rb:84:in >> `expect_render_mock_proxy'' >> /Users/mattlins/Projects/RailsProjects/SWNetworkServices/vendor/plugins/rspec_on_rails/lib/spec/rails/dsl/behaviour/controller.rb:67:in >> `render'' >> ./spec/controllers/products_controller_spec.rb:6: >> script/spec:4: >> >> The line of code responsible is: >> >> get "index" >> >> This is actually the first controller spec I''ve written, so I''m really >> lost. >> >> Any Ideas? >> > > The subject of this email says you''re having a problem upgrading, > which would imply that you already had this spec written and it was > passing and it started failing when you upgraded. > > But then you say this is the first controller spec you''ve written. > > Please clarify. > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071023/63512492/attachment-0001.html
On 10/23/07, Matt Lins <mlins at webinforem.com> wrote:> I upgraded the Rspec gem to the latest. > I upgraded the rspec rails plugin to the latest. > I upgraded the rspec_on_rails plugin to the latest.By "the latest", which of these do you mean? svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec svn://rubyforge.org/var/svn/rspec/trunk/rspec
mlins at webinforem.com
2007-Oct-23 16:44 UTC
[rspec-users] Problem Upgrading from 1.0.5 to 1.0.8
> On 10/23/07, Matt Lins <mlins at webinforem.com> wrote: >> I upgraded the Rspec gem to the latest. >> I upgraded the rspec rails plugin to the latest. >> I upgraded the rspec_on_rails plugin to the latest. > > By "the latest", which of these do you mean? > > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec > svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec > svn://rubyforge.org/var/svn/rspec/trunk/rspec > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >Looks like I have piston set to use this: svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec
Have you also piston''d: svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails? On 10/23/07, mlins at webinforem.com <mlins at webinforem.com> wrote:> > On 10/23/07, Matt Lins <mlins at webinforem.com> wrote: > >> I upgraded the Rspec gem to the latest. > >> I upgraded the rspec rails plugin to the latest. > >> I upgraded the rspec_on_rails plugin to the latest. > > > > By "the latest", which of these do you mean? > > > > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec > > svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec > > svn://rubyforge.org/var/svn/rspec/trunk/rspec > > _______________________________________________ > > rspec-users mailing list > > rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > > > Looks like I have piston set to use this: > > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- George Anderson BenevolentCode LLC O: (410) 461-7553 C: (410) 218-5185 george at benevolentcode.com
Yes. George Anderson wrote:> Have you also piston''d: > > svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails? > > On 10/23/07, mlins at webinforem.com <mlins at webinforem.com> wrote: > >>> On 10/23/07, Matt Lins <mlins at webinforem.com> wrote: >>> >>>> I upgraded the Rspec gem to the latest. >>>> I upgraded the rspec rails plugin to the latest. >>>> I upgraded the rspec_on_rails plugin to the latest. >>>> >>> By "the latest", which of these do you mean? >>> >>> svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec >>> svn://rubyforge.org/var/svn/rspec/tags/REL_1_0_8/rspec >>> svn://rubyforge.org/var/svn/rspec/trunk/rspec >>> _______________________________________________ >>> rspec-users mailing list >>> rspec-users at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rspec-users >>> >>> >> Looks like I have piston set to use this: >> >> svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec >> >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users >> >> > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rspec-users/attachments/20071023/1d80ed8e/attachment.html