aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-10-18 15:46:57 +0100
committerFrancis Irving <francis@mysociety.org>2010-10-18 15:46:57 +0100
commit87de318808f6138973cf0b2438931dfb227b3bb5 (patch)
tree8cc10d586866d892fd073044cb577edf9881626b /spec/controllers/request_controller_spec.rb
parente96640f408f2d986b9c04f40cb2ba97d0b6fbaa7 (diff)
Add tag_string to tests.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 060adb0e4..eddbe7869 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -302,7 +302,7 @@ describe RequestController, "when creating a new request" do
it "should show preview when input is good" do
post :new, { :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." },
:submitted_new_request => 1, :preview => 1
}
@@ -311,7 +311,7 @@ describe RequestController, "when creating a new request" do
it "should allow re-editing of a request" do
post :new, :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." },
:submitted_new_request => 1, :preview => 0,
:reedit => "Re-edit this request"
@@ -320,7 +320,7 @@ describe RequestController, "when creating a new request" do
it "should redirect to sign in page when input is good and nobody is logged in" do
params = { :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." },
:submitted_new_request => 1, :preview => 0
}
@@ -333,7 +333,7 @@ describe RequestController, "when creating a new request" do
it "should create the request and outgoing message, and send the outgoing message by email, and redirect to request page when input is good and somebody is logged in" do
session[:user_id] = @user.id
post :new, :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." },
:submitted_new_request => 1, :preview => 0
@@ -382,12 +382,12 @@ describe RequestController, "when creating a new request" do
session[:user_id] = @user.id
post :new, :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a silly letter. It is too short to be interesting." },
:submitted_new_request => 1, :preview => 0
post :new, :info_request => { :public_body_id => @body.id,
- :title => "Why is your quango called Geraldine?"},
+ :title => "Why is your quango called Geraldine?", :tag_string => "" },
:outgoing_message => { :body => "This is a sensible letter. It is too long to be boring." },
:submitted_new_request => 1, :preview => 0