unsfw - sorry Kinky Joe!
This commit is contained in:
parent
84eb313e20
commit
94a7f5bb91
3 changed files with 14 additions and 0 deletions
|
|
@ -26,6 +26,8 @@ class ProfilesController < ApplicationController
|
||||||
|
|
||||||
munge_tag_string
|
munge_tag_string
|
||||||
|
|
||||||
|
#checkbox tags wtf
|
||||||
|
@profile_attrs[:nsfw] ||= false
|
||||||
@profile_attrs[:searchable] ||= false
|
@profile_attrs[:searchable] ||= false
|
||||||
|
|
||||||
if params[:photo_id]
|
if params[:photo_id]
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,14 @@ Scenario: NSFWs users posts are nsfw
|
||||||
And I post "I love 0bj3ction4bl3 c0nt3nt!"
|
And I post "I love 0bj3ction4bl3 c0nt3nt!"
|
||||||
Then the post "I love 0bj3ction4bl3 c0nt3nt!" should be marked nsfw
|
Then the post "I love 0bj3ction4bl3 c0nt3nt!" should be marked nsfw
|
||||||
|
|
||||||
|
Scenario: Making yourself SFW
|
||||||
|
Given a nsfw user with email "tommy@pr0nking.com"
|
||||||
|
And I sign in as "tommy@pr0nking.com"
|
||||||
|
And I go to the edit profile page
|
||||||
|
When I mark myself as safe for work
|
||||||
|
And I submit the form
|
||||||
|
Then I should see the "you are safe for work" message
|
||||||
|
|
||||||
# And I log out
|
# And I log out
|
||||||
# And I log in as an office worker
|
# And I log in as an office worker
|
||||||
# And I am folllowing "tommy@pr0n.xxx"
|
# And I am folllowing "tommy@pr0n.xxx"
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
And /^I mark myself as not safe for work$/ do
|
And /^I mark myself as not safe for work$/ do
|
||||||
check('profile[nsfw]')
|
check('profile[nsfw]')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
And /^I mark myself as safe for work$/ do
|
||||||
|
uncheck('profile[nsfw]')
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue