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

  • Home
  • SEARCH
  • 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 6654269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:22:12+00:00 2026-05-26T01:22:12+00:00

IN this example: https://github.com/RailsApps/rails3-devise-rspec-cucumber I get an error because doing visit(‘/users/sign_out’) (in capybara..to ensure

  • 0

IN this example: https://github.com/RailsApps/rails3-devise-rspec-cucumber

I get an error because doing visit(‘/users/sign_out’) (in capybara..to ensure a user is logged out) fails. The problem is there’s no route for a GET to that path, since devise changed it to DELETE(and capybara doesn’t support PUT and DELETE without some js workarounds)

What are your suggestions in doing the “Given I am an unauthenticated user” step? how do you guys usually do it? I am hoping there’s an easy way out of this like 1-2 lines of ruby.

at the moment, i just do :

Given "i am an unauthenticated user" do
  @user == nil
end

but it sure doesn’t look like it’s testing anything.

  • 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-26T01:22:12+00:00Added an answer on May 26, 2026 at 1:22 am

    Yeah – this has been a bit of a pain for lotsa folks.

    The easiest way to get around it is to throw this in your /config/initializers/devise.rb file:

      config.sign_out_via = Rails.env.test? ? :get : :delete
    

    This will use the old get method for your test environment, and delete for all others.

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

Sidebar

Related Questions

while running this example https://github.com/JakSprats/node_Redisql/blob/master/examples/redisql_examples.js gives me this error , ~/rahul$ node redissql.js node.js:178
using this example on dynamic list https://github.com/sandeepleo11/Dynamic-Select-Menus-in-Rails-3 I managed to get dynamic select in
Please see this simple CATiledLayer example https://github.com/seanhess/CATiledLayer-Example It consists of one viewController with a
I can compile this JNA example code (from step 2 of https://github.com/twall/jna/#getting_started ): package
rowanparker https://github.com/rowanparker/kohana-3-paypal I really need this module but I can not use it because
I'm trying to run this example: https://github.com/larsgeorge/hbase-book/blob/master/ch03/src/main/java/client/PutExample.java , from this book: http://ofps.oreilly.com/titles/9781449396107/ , on
Trying to get this example working from http://www.munna.shatkotha.com/blog/post/2008/10/26/Light-box-effect-with-WPF.aspx However, I can't seem to get
When I browse a repo in GitHub (example: https://github.com/sizzlelab/kassi ) and click a folder,
I'm trying to reproduce the Jekyll plugin example from https://github.com/mojombo/jekyll/wiki/Plugins to render the *render_time*
I downloaded the rails 3.0.x socky demo app from : https://github.com/socky/socky-example . I remade

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.