Skip to content
Extraits de code Groupes Projets
Valider 94a7f5bb rédigé par Dennis Collinson's avatar Dennis Collinson
Parcourir les fichiers

unsfw - sorry Kinky Joe!

parent 84eb313e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -26,6 +26,8 @@ class ProfilesController < ApplicationController
munge_tag_string
#checkbox tags wtf
@profile_attrs[:nsfw] ||= false
@profile_attrs[:searchable] ||= false
if params[:photo_id]
......
......@@ -18,6 +18,14 @@ Scenario: NSFWs users posts are nsfw
And I post "I love 0bj3ction4bl3 c0nt3nt!"
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 in as an office worker
# And I am folllowing "tommy@pr0n.xxx"
......
And /^I mark myself as not safe for work$/ do
check('profile[nsfw]')
end
And /^I mark myself as safe for work$/ do
uncheck('profile[nsfw]')
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter