[rspec-users] Integration testing without cucumber

drewB dbatshaw at gmail.com
Mon Mar 1 19:06:29 EST 2010


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


More information about the rspec-users mailing list