Sha256: 1e4e9332aa865aafaffda791d5da552a0b97c90045488e7f36d122400c5a06c2

Contents?: true

Size: 952 Bytes

Versions: 18

Compression:

Stored size: 952 Bytes

Contents

Feature: Development Reloading

  In order to quickly develop applications
  As a developer
  I want the application to reload itself in development

  @requires-reloading
  Scenario: Registering a resource that was not previously registered
    When I am logged in with capybara
    Then I should not see a menu item for "Posts"

    When "app/admin/posts.rb" contains:
    """
      ActiveAdmin.register Post do
        permit_params :custom_category_id, :author_id, :title,
          :body, :position, :published_date, :starred
      end
    """
    When I am logged in with capybara
    Then I should see a menu item for "Posts"

    When I create a new post with the title "A"
    Then I should see a successful create flash

    When I add "validates_presence_of :title" to the "post" model
    And I create a new post with the title ""
    Then I should not see a successful create flash
    And I should see a validation error "can't be blank"

Version data entries

18 entries across 18 versions & 3 rubygems

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