Sha256: 8a2bf70d4e504e29d3328ddd5bc4de8599098ea0419f89d4e9286d0dc69a00d7

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

@browse_blog

Feature: Browse blog

  In order to learn more
  As a public user
  I want to browse the blog

  Scenario: Access the blog page
    Given I have a blog
    Given the following blog posts exist:
      | title | content      | summary | state     |
      | Foo   | Foo is foo.  | First   | published |
      | Bar   | Bar is bar.  | Second  | draft     |
    When I visit the blog page
    Then I should see "Default Blog"
    And I should see "My blog description"
    And I should see "Foo"
    And I should see "First"
    And I should not see "Bar"

  Scenario: View published blog post
    Given I have a blog
    Given the following blog posts exist:
      | title | content      | summary | state     |
      | Foo   | Foo is foo.  | First   | published |
    When I visit the blog page
    And I follow "Read More..."
    Then I should see "Foo"

  Scenario: Search for blog posts
    Given I have a blog
    Given the following blog posts exist:
      | title | content      | summary | state     |
      | Foo   | Foo is foo.  | First   | published |
    When I visit the blog search page
    And I fill in "keyword" with "foo"
    And I press "GO"
    Then I should see "Search Results (1)"
    And I should see "Foo"
    And I should see "First"

  Scenario: Access the archive
    Given I have a blog
    Given the following blog posts exist:
      | title | content      | summary | state     | publication_date |
      | Foo   | Foo is foo.  | First   | published | 2011-03-22       |
    When I visit the blog archive page
    Then I should see "March 2011"
    And I should see "Foo"

  Scenario: Access the RSS feed
    Given I have a blog
    Given the following blog posts exist:
      | title | content      | summary | state     | publication_date |
      | Foo   | Foo is foo.  | First   | published | 2011-03-22       |
    When I visit the blog RSS feed
    Then I should see "Foo"
    And I should see "Foo is foo."

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blog_logic-1.2.1 features/browse_blog.feature
blog_logic-1.2.0 features/browse_blog.feature
blog_logic-1.1.9 features/browse_blog.feature