MS; DG added test for unauthenticated post viewing
This commit is contained in:
parent
aa3ffbea7f
commit
d54ff5f341
2 changed files with 10 additions and 0 deletions
|
|
@ -11,3 +11,7 @@ Feature: Browsing Diaspora as a logged out user
|
||||||
Scenario: Visiting a profile page
|
Scenario: Visiting a profile page
|
||||||
When I am on "bob@bob.bob"'s page
|
When I am on "bob@bob.bob"'s page
|
||||||
Then I should see "public stuff"
|
Then I should see "public stuff"
|
||||||
|
|
||||||
|
Scenario: Visiting a post show page
|
||||||
|
When I view "bob@bob.bob"'s first post
|
||||||
|
Then I should see "public stuff"
|
||||||
|
|
|
||||||
|
|
@ -161,3 +161,9 @@ Given /^I have (\d+) contacts$/ do |n|
|
||||||
end
|
end
|
||||||
AspectMembership.import(aspect_memberships)
|
AspectMembership.import(aspect_memberships)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I view "([^\"]*)"'s first post$/ do |email|
|
||||||
|
user = User.find_by_email(email)
|
||||||
|
post = user.posts.first
|
||||||
|
visit post_path(post)
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue