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 7567225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:36:43+00:00 2026-05-30T14:36:43+00:00

When I visit my sign in page in a browser everything works fine. When

  • 0

When I visit my sign in page in a browser everything works fine.

When I visit my sign in page in an rspec integration/request test, I get the following error:

ActionView::Template::Error:
   undefined method `title' for #<#<Class:0x00000007af9180>:0x00000007af32a8>

The title method is used by the view and defined in ApplicationHelper which devise seems to find when using the browser. However, during rspec integration tests, devise is unable to find the helper method.

Is there anything I should be stubbing? It seems wrong to be stubbing in integration tests. Any other ideas?

(This question is not about how to include devise helpers in integration tests. I’m manually filling in the sign in forms to authenticate).

  • 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-30T14:36:44+00:00Added an answer on May 30, 2026 at 2:36 pm

    Looks like this issue. (in some cases related to ActiveAdmin https://github.com/gregbell/active_admin/wiki/Use-spork)

    Here I found a hack that works for me (REE 1.8.7, Rails 3.1, Capybara, Devise, active_admin).

    However, this is not likely to be merged, so I forked spork-rails to here with that patch applied. And as you probably know I can point my Gemfile to that repo:

    gem 'spork-rails', :git => "git://github.com/chopmo/spork-rails.git"
    

    Not optimal but it gets the job done for now.

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

Sidebar

Related Questions

I'm having some problems with rspec, which returns an error, even though everything works
Please visit http://domenadesign.com/istra-bike.com with Firefox browser! After a few clicks on the links page
When I visit the page with the browser it is xml but when I
I am following ruby on rails tutorial. Stuck on getting the sign up page
After successfully finishing the sign up page, with no failing tests, I get to
I'm trying to write a request spec for a web page. This page works
I'm setting up some integration tests using capybara and rspec. In a single test,
Following the MH tutorial (2nd edition) all went fine (dev and tests with Rspec
The wiki page for Devise suggests using the following to test if the user
I'm getting the following error after completing the sign out part of the tutorial:

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.