Sha256: 0f0a9755a796efd91bdb1d5671b13904df0dbb5740a64c05356f695a83dcbc2b

Contents?: true

Size: 1.95 KB

Versions: 6

Compression:

Stored size: 1.95 KB

Contents

Feature: Menu

  Background:
    Given I am logged in

  Scenario: Hide the menu item
    Given a configuration of:
    """
      ActiveAdmin.register Post do
        menu false
      end
    """
    When I am on the dashboard
    Then I should not see a menu item for "Posts"

  Scenario: Set the menu item label
    Given a configuration of:
    """
      ActiveAdmin.register Post do
        menu :label => "Articles"
      end
    """
    When I am on the dashboard
    Then I should see a menu item for "Articles"
    And I should not see a menu item for "Posts"

  Scenario: Set the site title and site title link
    Given a configuration of:
    """
      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 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

  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"

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
activeadmin-0.4.1 features/menu.feature
activeadmin-0.4.0 features/menu.feature
andrewroth_activeadmin-0.3.4.4 features/menu.feature
andrewroth_activeadmin-0.3.4.3 features/menu.feature
andrewroth_activeadmin-0.3.4.2 features/menu.feature
andrewroth_activeadmin-0.3.4.1 features/menu.feature