Sha256: a38286001bbdc3b8c3756f4f1c3b96af7280eb396b5d93db9ae0b88dea6e685e

Contents?: true

Size: 1.04 KB

Versions: 13

Compression:

Stored size: 1.04 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 "active_admin"
    Then I should see the js file "active_admin"

  Scenario: Registering a CSS file
    Given a configuration of:
    """
      ActiveSupport::Deprecation.silence do
        ActiveAdmin.application.register_stylesheet "some-random-css.css", media: :print
        ActiveAdmin.register Post
      end
    """
    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:
    """
      ActiveSupport::Deprecation.silence do
        ActiveAdmin.application.register_javascript "some-random-js.js"
        ActiveAdmin.register Post
      end
    """
    When I am on the index page for posts
    Then I should see the js file "some-random-js"

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin-rb-1.4.0 features/registering_assets.feature
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin-1.3.1 features/registering_assets.feature
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin-1.3.0 features/registering_assets.feature
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/registering_assets.feature
activeadmin-1.2.1 features/registering_assets.feature
activeadmin-1.2.0 features/registering_assets.feature
activeadmin-1.1.0 features/registering_assets.feature