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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:37:42+00:00 2026-05-14T19:37:42+00:00

I added the authlogic_facebook_connect plugin to my project and I’m now having problem running

  • 0

I added the authlogic_facebook_connect plugin to my project and I’m now having problem running my cucumber test because of a NoMethodError.

undefined method `set_facebook_session' for nil:NilClass (NoMethodError)

In authlogic_facebook_connect/Session.rb the method “authenticating_with_facebook_connect?” is called as some sort of callback and the controller is defined but is missing the ‘set_facebook_session’ method.

  def authenticating_with_facebook_connect?
    controller.set_facebook_session
    attempted_record.nil? && errors.empty? && controller.facebook_session
  end

I don’t understand why the cucumber test is not loading the controller with this method.
I also test the app in development and cucumber environments and everything works perfect.

Here is the full cucumber output.

Feature: Authentication
  In order to keep security a user should only be able to edit their own profile

  Background:                                # features/authorization.feature:4
    Given a valid user record for joe_runner # features/step_definitions/user_steps.rb:4
      undefined method `set_facebook_session' for nil:NilClass (NoMethodError)
      ./vendor/plugins/authlogic/lib/authlogic/controller_adapters/abstract_adapter.rb:63:in `send'
      ./vendor/plugins/authlogic/lib/authlogic/controller_adapters/abstract_adapter.rb:63:in `method_missing'
      ./vendor/plugins/authlogic_facebook_connect/lib/authlogic_facebook_connect/session.rb:132:in `authenticating_with_facebook_connect?'
      ./vendor/plugins/authlogic/lib/authlogic/session/callbacks.rb:83:in `validate'
      ./vendor/plugins/authlogic/lib/authlogic/session/validation.rb:64:in `valid?'
      ./vendor/plugins/authlogic/lib/authlogic/session/existence.rb:65:in `save'
      ./vendor/plugins/authlogic/lib/authlogic/session/existence.rb:30:in `create'
      ./vendor/plugins/authlogic/lib/authlogic/acts_as_authentic/session_maintenance.rb:113:in `create_session'
      ./vendor/plugins/authlogic/lib/authlogic/acts_as_authentic/session_maintenance.rb:103:in `maintain_sessions'
      ./features/step_definitions/user_steps.rb:5:in `/^a valid user record for ([\w]*)$/'
      features/authorization.feature:5:in `Given a valid user record for joe_runner'

  Scenario: Jonathan can edit his profile but not other users profiles # features/authorization.feature:7
    Given jonathan is logged in as an user                             # features/step_definitions/user_steps.rb:13
    When I go to my user edit page                                     # features/step_definitions/web_steps.rb:18
    And I press "Update"                                               # features/step_definitions/web_steps.rb:22
    Then I should see "Account updated!"                               # features/step_definitions/web_steps.rb:142
    When I go to joe_runner's user edit page                           # features/step_definitions/web_steps.rb:18
    Then I should see "You do not allowed to access to view that page" # features/step_definitions/web_steps.rb:142

Failing Scenarios:
cucumber features/authentication.feature:9 # Scenario: Signup
cucumber features/authorization.feature:7 # Scenario: Jonathan can edit his profile but not other users profiles

2 scenarios (2 failed)
15 steps (2 failed, 13 skipped)
0m0.173s
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1029:in `ruby'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `ruby'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.4/lib/cucumber/rake/task.rb:68:in `run'
/Library/Ruby/Gems/1.8/gems/cucumber-0.6.4/lib/cucumber/rake/task.rb:138:in `define_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
activespoon:base_project jspooner$

There are a couple of blogs that give examples on how to test facebook apps with cucumber but they didn’t help because my error comes before these.
http://opensoul.org/2009/3/6/testing-facebook-with-cucumber
http://ryanbigg.com/2010/03/testing-facebook/

  • 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-14T19:37:43+00:00Added an answer on May 14, 2026 at 7:37 pm

    I had the same issue with my test suite after installing authlogic_facebook_connect.
    I applied the following patch to the plugin and it solved the problem:

    http://gist.github.com/221893

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

Sidebar

Related Questions

ADDED: This question is now, I believe, subsumed by this one: Using GNU Screen
Once I added the cancan Gem to my authlogic authorisation system, I started running
Added: Working with SQL Server 2000 and 2005, so has to work on both.
Added : I am conducting a study for a new system we're going to
I added a custom install action to my installer to add one of my
I added some custom fields (public booleans) to the global class in global.asax.cs which
I added some simple WatiN tests to our app today to check that a
I added a text file to a testapp's solution and I want to read
I added the columns in the select list to the order by list, but
I added a get_absolute_url function to one of my models. def get_absolute_url(self): return '/foo/bar'

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.