Sha256: 3b7eda7479bb0b642dbd72f33ae996f87d4217ce3c70418756639e420df9eb30

Contents?: true

Size: 1004 Bytes

Versions: 20

Compression:

Stored size: 1004 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
        if Rails::VERSION::MAJOR == 4
          permit_params :custom_category_id, :author_id, :title,
            :body, :position, :published_at, :starred
        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

20 entries across 20 versions & 3 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/development_reloading.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/development_reloading.feature
yousty-activeadmin-1.0.17.pre features/development_reloading.feature
yousty-activeadmin-1.0.16.pre features/development_reloading.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/development_reloading.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/development_reloading.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/development_reloading.feature
yousty-activeadmin-1.0.15.pre features/development_reloading.feature
yousty-activeadmin-1.0.14.pre features/development_reloading.feature
yousty-activeadmin-1.0.13.pre features/development_reloading.feature
yousty-activeadmin-1.0.12.pre features/development_reloading.feature
yousty-activeadmin-1.0.11.pre features/development_reloading.feature
yousty-activeadmin-1.0.10.pre features/development_reloading.feature
yousty-activeadmin-1.0.9.pre features/development_reloading.feature
yousty-activeadmin-1.0.8.pre features/development_reloading.feature
activeadmin-1.0.0.pre2 features/development_reloading.feature
activeadmin-1.0.0.pre1 features/development_reloading.feature
yousty-activeadmin-1.0.7.pre features/development_reloading.feature
yousty-activeadmin-1.0.6.pre features/development_reloading.feature
yousty-activeadmin-1.0.5.pre features/development_reloading.feature