Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6087745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:54:19+00:00 2026-05-23T11:54:19+00:00

Im using rails – 2.3.8 cucumber – 0.8.5 cucumber-rails – 0.3.2 capybara – 0.4.0

  • 0

Im using

rails - 2.3.8
cucumber - 0.8.5
cucumber-rails - 0.3.2
capybara - 0.4.0

I am trying to test a particular login/registration scenario where the user is redirected before landing on the required page. On redirect, cucumber flushes the session ie the user is no longer logged in.

Any ideas on how to prevent this?

EDIT

The feature im trying to test is as follows:

Feature: Check Register and SignUp  
    In order to use products
    As a User
    I want to register and login

    @javascript
    Scenario: Register on Landing Page
            When I go to Landing Page
            And I fill in "user_email" with "test@test.com"
            And I fill in "user_email_confirmation" with "test@test.com"
            And I fill in "user_password" with "testpass"
            And I select "State" from "state"
            And I press "Register Free"
            And I wait until Ajax requests are complete
            Then I should be on Home

When i add And show me the page to the feature, i see the Landing Page again.

Edit 2

I’m using restful_authentication for authentication.
The actual working is, when the form submits, the user is taken to a page and then redirected to the home page. This works when testing manually, but not when using cucumber.

Edit 3
Code formatting

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:54:19+00:00Added an answer on May 23, 2026 at 11:54 am

    perhaps a silly detail, though have you double checked that the url of the paths you’ve set match the site host in your cuke config? This bit us for a while while testing some cross-site JSON-P stuff…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Rails 3.2.8, Devise 2.1.2, & Simpleform 2.0.2 I'm trying to redirect user upon
Using Rails 3.0.5, RSpec 2 and Capybara 0.4.1.2 and I'am trying to write a
Using Rails 3. In my project directory am trying to launch rails script/console by
Using Rails 3.1.3 and Ruby 1.9.3. I want to give the user a list
Using Rails I'm trying to get an error message like The song field can't
I'm using Rails 2.3 and I have 3 tables, which manages user permissions to
Using: Rails 3.1.1 I am trying to create a search engine in my application
Using Rails 3.0.3. I have the following route in routes.rb: match user/create_new_password/:reset_password_key =>users#create_new_password, :via=>[:get,
Using rails, devise, rspec & factorygirl: Trying to create some tests for my site.
Using Rails 3.0.9, I'm trying to redirect after a post to the create method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.