Commit 110767f63c3c8320b5ade082a50d30117bf972a6
Committed by
Diego Camarinha
1 parent
36c08eb3
[Colab] RemoteUser acceptance test modified accordingly to the actual behaviour …
…of Rack, Warden and omniauth-remote-user
Showing
2 changed files
with
2 additions
and
10 deletions
Show diff stats
features/step_definitions/user_steps.rb
@@ -41,8 +41,6 @@ Given(/^I am logged in as a Colab user$/) do | @@ -41,8 +41,6 @@ Given(/^I am logged in as a Colab user$/) do | ||
41 | 'name': colab_user.name, | 41 | 'name': colab_user.name, |
42 | 'email': colab_user.email | 42 | 'email': colab_user.email |
43 | }.to_json) | 43 | }.to_json) |
44 | - | ||
45 | - visit(user_omniauth_authorize_path(provider: 'RemoteUser')) # Authenticate the user (remove this if you want just to set the headers) | ||
46 | end | 44 | end |
47 | 45 | ||
48 | Then(/^I should be at the Home page$/) do | 46 | Then(/^I should be at the Home page$/) do |
features/users/omniauth.feature
@@ -3,13 +3,7 @@ Feature: Omniauth authentication | @@ -3,13 +3,7 @@ Feature: Omniauth authentication | ||
3 | As a regular user | 3 | As a regular user |
4 | I want to authenticate with an external provider | 4 | I want to authenticate with an external provider |
5 | 5 | ||
6 | - #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 | ||
7 | - @javascript | ||
8 | Scenario: through Colab | 6 | Scenario: through Colab |
9 | Given I am logged in as a Colab user | 7 | Given I am logged in as a Colab user |
10 | - #And I am at the homepage | ||
11 | - #And I take a picture of the page | ||
12 | - #And I click the Sign In link | ||
13 | - #When I click the Sign in with Remote User link | ||
14 | - Then I should be at the Home page | ||
15 | - And I should be logged in | ||
16 | \ No newline at end of file | 8 | \ No newline at end of file |
9 | + Given I am at the homepage | ||
10 | + And I should be logged in |