From 48f2cb05f6036a424c90d2ab15a59a2e2dc5867e Mon Sep 17 00:00:00 2001 From: David Cabo Date: Sat, 26 May 2012 16:29:20 +0200 Subject: Fix tests for Terms&Conditions tuderechoasaber.es patch --- app/views/user/_signup.rhtml | 4 ++-- spec/controllers/user_controller_spec.rb | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/views/user/_signup.rhtml b/app/views/user/_signup.rhtml index 661ece1ee..af29e36c2 100644 --- a/app/views/user/_signup.rhtml +++ b/app/views/user/_signup.rhtml @@ -40,8 +40,8 @@ <%= check_box_tag 'toc', "1" %>

diff --git a/spec/controllers/user_controller_spec.rb b/spec/controllers/user_controller_spec.rb index 40649b6e1..c494c2682 100644 --- a/spec/controllers/user_controller_spec.rb +++ b/spec/controllers/user_controller_spec.rb @@ -248,7 +248,7 @@ describe UserController, "when signing up" do it "should send confirmation mail if you fill in the form right" do post :signup, { :user_signup => { :email => 'new@localhost', :name => 'New Person', - :password => 'sillypassword', :password_confirmation => 'sillypassword' } + :password => 'sillypassword', :password_confirmation => 'sillypassword' }, :toc => "1" } response.should render_template('confirm') @@ -260,8 +260,7 @@ describe UserController, "when signing up" do it "should send confirmation mail in other languages or different locales" do session[:locale] = "es" post :signup, {:user_signup => { :email => 'new@localhost', :name => 'New Person', - :password => 'sillypassword', :password_confirmation => 'sillypassword', - } + :password => 'sillypassword', :password_confirmation => 'sillypassword'}, :toc => "1" } response.should render_template('confirm') @@ -272,7 +271,7 @@ describe UserController, "when signing up" do it "should send special 'already signed up' mail if you fill the form in with existing registered email" do post :signup, { :user_signup => { :email => 'silly@localhost', :name => 'New Person', - :password => 'sillypassword', :password_confirmation => 'sillypassword' } + :password => 'sillypassword', :password_confirmation => 'sillypassword' }, :toc => "1" } response.should render_template('confirm') -- cgit v1.2.3