Sha256: 4cd9c3f7f1b1c5710fd10e400e61ed8295177d95535c059bbcd7d7f6be73f959

Contents?: true

Size: 1.45 KB

Versions: 13

Compression:

Stored size: 1.45 KB

Contents

Feature: Proper content negotiation
  In order to have a more rich and flexible editing and browsing experience
  a content editor
  wants to access the admin section with multiple content formats

  Scenario: Default to HTML format
    Given I am logged in as "admin"
    When I send an "Accept" header of "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"
    And I go to "/admin/pages"
    Then I should not see "Missing template"
    
  Scenario: Requesting XML format via file-extension
    Given I am logged in as "admin"
    When I send an "Accept" header of "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*"
    And I go to "/admin/pages.xml"
    Then I should see "<\?xml"

  Scenario: Requesting children via Ajax
    Given I am logged in as "admin"
    When I send an "Accept" header of "text/javascript, text/html, application/xml, text/xml, */*"
    And I send an "X-Requested-With" header of "XMLHttpRequest"
    And I request the children of page "home"
    Then I should not see "Radiant CMS"
    And I should see "<tr"

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.2.2 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.2.1 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.2 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.1.9 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.1.8 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.1.7 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.1.6 features/admin/content_negotiation.feature
radiantcms-couchrest_model-0.1.5 features/admin/content_negotiation.feature
radiant-0.8.2 features/admin/content_negotiation.feature
radiant-rc-0.9.0 features/admin/content_negotiation.feature
radiant-0.8.1 features/admin/content_negotiation.feature
radiant-0.8.0 features/admin/content_negotiation.feature