[rspec-users] Integration testing without cucumber

David Chelimsky dchelimsky at gmail.com
Mon Mar 1 18:04:06 EST 2010


On Mon, Mar 1, 2010 at 4:59 PM, drewB <dbatshaw 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}


More information about the rspec-users mailing list