features/site_title.feature in activeadmin-0.4.4 vs features/site_title.feature in activeadmin-0.5.0.pre
- old
+ new
@@ -39,9 +39,9 @@
Scenario: Set the site title to a proc
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"