mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-08-01 18:27:57 -04:00
show_email checkbox on settings page
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
= f.email_field :email
|
||||
%span.help-inline If you change your email address you will have to reconfirm
|
||||
|
||||
.control-group
|
||||
.controls
|
||||
= f.check_box :show_email
|
||||
Show email publicly on your profile page
|
||||
|
||||
%h2 Change password
|
||||
|
||||
.control-group
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
.control-group
|
||||
.controls
|
||||
= f.check_box :tos_agreement
|
||||
I agree to the
|
||||
I agree to the
|
||||
= link_to('Terms of Service', url_for(:action => 'tos', :controller => '/policy'))
|
||||
|
||||
.form-actions
|
||||
|
||||
@@ -18,9 +18,14 @@ describe 'devise/registrations/edit.html.haml', :type => "view" do
|
||||
rendered.should contain 'Email'
|
||||
end
|
||||
|
||||
it 'should have an email section' do
|
||||
assert_select "h2", "Email address"
|
||||
end
|
||||
context 'email section'
|
||||
it 'has a heading' do
|
||||
assert_select "h2", "Email address"
|
||||
end
|
||||
|
||||
it 'shows show_email checkbox' do
|
||||
assert_select "input[id=member_show_email][type=checkbox]"
|
||||
end
|
||||
|
||||
it 'should have a password section' do
|
||||
assert_select "h2", "Change password"
|
||||
|
||||
Reference in New Issue
Block a user