From 48612fbd53e3ffeceb3b97f19589fba93b1364a1 Mon Sep 17 00:00:00 2001 From: Rafael Reggiani Manzo Date: Mon, 4 May 2015 19:25:43 -0300 Subject: [PATCH] [Colab] RemoteUser acceptance test modified accordingly to the actual behaviour of Rack, Warden and omniauth-remote-user --- features/step_definitions/user_steps.rb | 2 -- features/users/omniauth.feature | 10 ++-------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/features/step_definitions/user_steps.rb b/features/step_definitions/user_steps.rb index 30612da..2932743 100644 --- a/features/step_definitions/user_steps.rb +++ b/features/step_definitions/user_steps.rb @@ -41,8 +41,6 @@ Given(/^I am logged in as a Colab user$/) do 'name': colab_user.name, 'email': colab_user.email }.to_json) - - visit(user_omniauth_authorize_path(provider: 'RemoteUser')) # Authenticate the user (remove this if you want just to set the headers) end Then(/^I should be at the Home page$/) do diff --git a/features/users/omniauth.feature b/features/users/omniauth.feature index aab4414..f7e8aaf 100644 --- a/features/users/omniauth.feature +++ b/features/users/omniauth.feature @@ -3,13 +3,7 @@ Feature: Omniauth authentication As a regular user I want to authenticate with an external provider - #FIXME: For some reason. just for cucumber tests, if you set the HTTP headers, it ignores all the path you visit and goes straight to the omniauth controller action - @javascript Scenario: through Colab Given I am logged in as a Colab user - #And I am at the homepage - #And I take a picture of the page - #And I click the Sign In link - #When I click the Sign in with Remote User link - Then I should be at the Home page - And I should be logged in \ No newline at end of file + Given I am at the homepage + And I should be logged in -- libgit2 0.21.2