Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (24 sloc) 1.05 kB
@javascript
Feature: Browsing Diaspora as a logged out user
In order to view public diaspora content
as a random internet user
I want to view public pages
Background:
Given a user named "Bob Jones" with email "bob@bob.bob"
And "bob@bob.bob" has a public post with text "public stuff"
And I log out
Scenario: Visiting a profile page
When I am on "bob@bob.bob"'s page
Then I should see "public stuff" within "body"
Scenario: Clicking Last Post
When I am on "bob@bob.bob"'s page
And I follow "Last Post"
Then I should see "public stuff" within "body"
Scenario: Visiting a post show page
When I view "bob@bob.bob"'s first post
Then I should see "public stuff" within "body"
Scenario: Visiting a non-public post
Given "bob@bob.bob" has a non public post with text "my darkest secrets"
When I open the show page of the "my darkest secrets" post
Then I should see the "post not public" message
And I should not see "my darkest secrets"
Jump to Line
Something went wrong with that request. Please try again.