aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-07-25 13:25:46 +0100
committerRobin Houston <robin.houston@gmail.com>2011-07-26 16:30:36 +0100
commit5ad84d3ab83f4a7cb22fe69bbf5d6534683682af (patch)
tree03f72068aa599174da6716f8f0a68df0038f1182 /spec/controllers/request_controller_spec.rb
parent30bba84b72bf8c40c149dea8f8895b182ede16ae (diff)
Remove redundant test (this change should be with commit dd58cd35e51c1b98228aae1aa930629e84b6a905)
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 8232a7398..9d91bf8c2 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -376,20 +376,6 @@ describe RequestController, "when creating a new request" do
response.should render_template('new')
end
- it "should give an error if the same request is submitted twice with extra whitespace in the body" do
- # This only works for PostgreSQL databases which have regexp_replace -
- # see model method InfoRequest.find_by_existing_request for more info
- if ActiveRecord::Base.connection.adapter_name == "PostgreSQL"
- session[:user_id] = @user.id
-
- post :new, :info_request => { :public_body_id => info_requests(:fancy_dog_request).public_body_id,
- :title => info_requests(:fancy_dog_request).title },
- :outgoing_message => { :body => "\n" + info_requests(:fancy_dog_request).outgoing_messages[0].body + " "},
- :submitted_new_request => 1, :preview => 0, :mouse_house => 1
- response.should render_template('new')
- end
- end
-
it "should let you submit another request with the same title" do
session[:user_id] = @user.id