[rspec-users] Integration testing without cucumber

drewB dbatshaw at gmail.com
Tue Mar 2 12:53:05 EST 2010


Looks like I spoke too soon.  I made a mistake when testing your
suggest.  When I add that I still get the same failure.

On Mar 1, 4:06 pm, drewB <dbats... at gmail.com> wrote:
> That fixed it! Thanks!
>
> Any idea why that was needed for integration specs and not MVCs?
>
> On Mar 1, 3:04 pm, David Chelimsky <dchelim... at gmail.com> wrote:
>
> > On Mon, Mar 1, 2010 at 4:59 PM, drewB <dbats... at gmail.com> wrote:
> > > Belwo is a spec that when used with the default spec_helper fails
> > > with:
>
> > > NoMethodError in 'test matchers should be able to find be_success'
> > > undefined method `be_success' for
> > > #<ActionController::Integration::Session:0x7fc081ef13e0>
>
> > > ----------
>
> > > require 'spec_helper'
>
> > > describe "test matchers" do
> > >  it "should be able to find be_success" do
> > >    get '/'
> > >    response.should be_success
> > >  end
>
> > > end
>
> > Try adding this to spec/spec_helper.rb
>
> > Spec::Runner.configure {|c| c.include Spec::Matchers}
> > _______________________________________________
> > rspec-users mailing list
> > rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
>
> _______________________________________________
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list