Sha256: 5dea310dbf0b81c951838df76d02d8533e8cb38e2c9819ed56e31549bfbe16fc

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

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
        controller do
          def permitted_params
            params.permit post: [:category, :author, :title, :body, :published_at, :starred]
          end if Rails::VERSION::MAJOR == 4
        end
      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

11 entries across 11 versions & 4 rubygems

Version Path
yousty-activeadmin-1.0.4.pre features/development_reloading.feature
yousty-activeadmin-1.0.3.pre features/development_reloading.feature
active_administration-0.0.3 features/development_reloading.feature
activeadministration-0.0.2 features/development_reloading.feature
active_administration-0.0.2 features/development_reloading.feature
activeadministration-0.0.1 features/development_reloading.feature
active_administration-0.0.1 features/development_reloading.feature
yousty-activeadmin-1.0.2.pre features/development_reloading.feature
yousty-activeadmin-1.0.1.pre features/development_reloading.feature
yousty-activeadmin-1.0.0.pre features/development_reloading.feature
aa-rails4-0.6.0 features/development_reloading.feature