Skip to content

Commit

Permalink
Ensure site title scenario works when logged out.
Browse files Browse the repository at this point in the history
  • Loading branch information
pcreux committed Jul 4, 2012
1 parent 07b9ba4 commit 2fa7840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/site_title.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Feature: Site title
Given a configuration of:
"""
ActiveAdmin.application.site_title_image = nil # Configuration is not reset between scenarios
ActiveAdmin.application.site_title = proc { "Hello #{controller.current_admin_user.email}" }
ActiveAdmin.application.site_title = proc { "Hello #{controller.current_admin_user.try(:email) || 'you!'}" }
"""
When I am on the dashboard
And I should see the site title "Hello admin@example.com"

0 comments on commit 2fa7840

Please sign in to comment.