Sha256: 3a51dd29ecf69e5d5030eaeac1459ad0a537abebf6940e4b935bd7f41fd2d10c

Contents?: true

Size: 1.01 KB

Versions: 90

Compression:

Stored size: 1.01 KB

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 "admin/active_admin.css"
    Then I should see the js file "active_admin_vendor.js"
    Then I should see the js file "active_admin.js"

  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.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.js"

Version data entries

90 entries across 90 versions & 7 rubygems

Version Path
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.94 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.92 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.90 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.84 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.80 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.79 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.78 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.77 vendor/deps/active_admin/features/registering_assets.feature
lalala-4.0.0.dev.74 vendor/deps/active_admin/features/registering_assets.feature