Skip to content

Rack::Test::Error with RSpec/Capybara #367

@emachnic

Description

@emachnic

Getting the following error using RSpec 2.6.0.rc6 and Capybara 0.4.1.2

Run filtered 
F

Failures:

  1) user signs in should be successful
     Failure/Error: page.body.should =~ "Successfully"
     Rack::Test::Error:
       No response yet. Request a page first.
     # ./spec/integration/user_logs_in.rb:12:in `block (2 levels) in <top (required)>'

Finished in 0.44836 seconds
1 example, 1 failure

I'm also running Rails 3.1.0.beta1. Wasn't sure if this was an issue or if I'd done something wrong. I've also tried doing page.should have_content("Successfully") and page.body.should have_content("Successfully"). Any help in the right direction is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions