Sha256: cdb3c0e88141c1977ae352f3b8920d47a3ccf9c44b0d36fd666a97094bdb44ba

Contents?: true

Size: 948 Bytes

Versions: 5

Compression:

Stored size: 948 Bytes

Contents

Feature: Registering Assets

  Registering CSS and JS files

  Background:
    Given a configuration of:
    """
      ActiveAdmin.register Post
    """
    And I am logged in


  Scenario: Viewing default asset files
    When I am on the index page for posts
    Then I should see the css file "active_admin"
    Then I should see the js file "active_admin"

  Scenario: Registering a CSS file
    Given a configuration of:
    """
      ActiveAdmin.application.register_stylesheet "some-random-css.css", media: :print
      ActiveAdmin.register Post
    """
    When I am on the index page for posts
    Then I should see the css file "some-random-css" of media "print"

  Scenario: Registering a JS file
    Given a configuration of:
    """
      ActiveAdmin.application.register_javascript "some-random-js.js"
      ActiveAdmin.register Post
    """
    When I am on the index page for posts
    Then I should see the js file "some-random-js"

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
activeadmin-rb-1.6.0 features/registering_assets.feature
activeadmin-rb-1.5.2 features/registering_assets.feature
activeadmin-rb-1.5.1 features/registering_assets.feature
activeadmin-rb-1.5.0 features/registering_assets.feature
activeadmin-1.0.0 features/registering_assets.feature