features/menu.feature in activeadmin-0.3.4 vs features/menu.feature in activeadmin-0.4.0
- old
+ new
@@ -29,9 +29,29 @@
"""
ActiveAdmin.application.site_title = "My Great Site"
ActiveAdmin.application.site_title_link = "http://www.google.com/"
"""
When I am on the dashboard
- And I should see "My Great Site"
+ And I should see the site title "My Great Site"
When I follow "My Great Site"
Then I should see "Ruby on Rails: Welcome aboard"
- # Why won't it take me to the Googles??? It takes me to / instead. Oh well
+ # Why won't it take me to the Googles??? It takes me to / instead. Oh well
+
+ Scenario: Set the site title image
+ Given a configuration of:
+ """
+ ActiveAdmin.application.site_title = "My Great Site"
+ ActiveAdmin.application.site_title_image = "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
+ """
+ When I am on the dashboard
+ And I should not see the site title "My Great Site"
+ And I should see the site title image "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
+
+ Scenario: Set the site title image with link
+ Given a configuration of:
+ """
+ ActiveAdmin.application.site_title_link = "http://www.google.com"
+ ActiveAdmin.application.site_title_image = "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
+ """
+ When I am on the dashboard
+ And I should see the site title image "http://railscasts.com/assets/episodes/stills/284-active-admin.png?1316476106"
+ And I should see the site title image linked to "http://www.google.com"
\ No newline at end of file