[rspec-users] Problem Upgrading from 1.0.5 to 1.0.8
mlins at webinforem.com
Tue Oct 23 12:18:55 EDT 2007
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
The error again is:
NameError in 'ProductsController with a GET to /products NO NAME
(Because of Error raised in matcher)'
uninitialized constant Spec::Mocks::BaseExpectation::AnyArgsConstraint
David Chelimsky wrote:
> On 10/23/07, Matt Lins <mlins at webinforem.com> wrote:
>> Hey Guys,
>> I'm getting the following error:
>> NameError in 'ProductsController with a GET to /products NO NAME (Because
>> of Error raised in matcher)'
>> uninitialized constant
>> The line of code responsible is:
>> get "index"
>> This is actually the first controller spec I've written, so I'm really
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users