Skip to content

Instantly share code, notes, and snippets.

@cored
Last active August 29, 2015 13:57
Show Gist options
  • Save cored/67d550e436f5657f4c9a to your computer and use it in GitHub Desktop.
Save cored/67d550e436f5657f4c9a to your computer and use it in GitHub Desktop.
# config/application.rb
# Loading
config.autoload_paths += %W( #{Rails.root.to_s}/lib )
# lib/social/linkedin/deauthorizer.rb
module Social
module LinkedIn
end
end
NameError: uninitialized constant Social::LinkedIn
test/functional/linkedin_auth_controller_test.rb:116:in `block in <class:LinkedinAuthControllerTest>'
test "deauthorize oauth token" do
u = create_user!
login_as(u)
Social::LinkedIn::Deauthorizer.expects(:deauthorize).with(u)
post :deauthorize
assert_redirected_to settings_path
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment