Sha256: 022e82cfcf51adf4dc544be27b47d6d20c83610f65fd29dd05adf5fc8a1adc57

Contents?: true

Size: 1.34 KB

Versions: 56

Compression:

Stored size: 1.34 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: Reloading an updated model that a resource points to
    Given "app/admin/posts.rb" contains:
    """
      ActiveAdmin.register Post
    """
    And I am logged in with capybara
    And I create a new post with the title ""
    Then I should see a successful create flash
    Given 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"


  # TODO: Create a scenario that reloads one of the active admin
  # configuration files.
  #
  # @requires-reloading
  # Scenario: Reloading an updated model that a resource points to
  #   Given "app/admin/posts.rb" contains:
  #   """
  #     ActiveAdmin.register Post
  #     ActiveAdmin.register User
  #   """
  #   And I am logged in
  #   Then I should see a menu item for "Posts"

  #   Given "app/admin/posts.rb" contains:
  #   """
  #     ActiveAdmin.register Post, :as => "Blog"
  #     ActiveAdmin.register User
  #   """
  #   When I follow "Users"
  #   Then show me the page
  #   Then I should see a menu item for "Blogs"
  #   Then I should not see a menu item for "Posts"

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
activeadmin-0.6.6 features/development_reloading.feature
activeadmin-0.6.5 features/development_reloading.feature
activeadmin-0.6.4 features/development_reloading.feature
activeadmin-0.6.3 features/development_reloading.feature
activeadmin-0.6.2 features/development_reloading.feature
activeadmin-0.6.1 features/development_reloading.feature
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/development_reloading.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/development_reloading.feature