Skip to content
Snippets Groups Projects
Commit 1cbfc8d0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix tab tests. Prevent 500 if user.last_sign_in_at is nil

parent 74c8a635
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -46,7 +46,10 @@
%li
%span.light Last sign-in at:
%strong
= @admin_user.last_sign_in_at.stamp("Nov 12, 2031")
- if @admin_user.last_sign_in_at
= @admin_user.last_sign_in_at.stamp("Nov 12, 2031")
- else
never
 
- if @admin_user.ldap_user?
%li
Loading
Loading
Loading
Loading
@@ -45,7 +45,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
# Sub Tabs: Home
 
Given 'I click the "Team" tab' do
click_link('Team')
click_link('Project Members')
end
 
Given 'I click the "Attachments" tab' do
Loading
Loading
@@ -61,7 +61,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
end
 
Given 'I click the "Hooks" tab' do
click_link('Hooks')
click_link('Web Hooks')
end
 
Given 'I click the "Deploy Keys" tab' do
Loading
Loading
@@ -73,7 +73,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
end
 
Then 'the active sub tab should be Team' do
ensure_active_sub_tab('Team')
ensure_active_sub_tab('Project Members')
end
 
Then 'the active sub tab should be Attachments' do
Loading
Loading
@@ -89,7 +89,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
end
 
Then 'the active sub tab should be Hooks' do
ensure_active_sub_tab('Hooks')
ensure_active_sub_tab('Web Hooks')
end
 
Then 'the active sub tab should be Deploy Keys' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment