aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/request_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-06 14:15:41 +0000
committerfrancis <francis>2008-03-06 14:15:41 +0000
commitc1099db3212c200a60ad7835589cfb636e975728 (patch)
treecd8cd119cad0c486e0fa890bc1b6ae0095ba8566 /spec/controllers/request_controller_spec.rb
parentf7164bb8fdc075d133f98b5c7fc789493648dc8e (diff)
Fix up tests.
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r--spec/controllers/request_controller_spec.rb25
1 files changed, 1 insertions, 24 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb
index 4d68c2b8c..d8a0466ba 100644
--- a/spec/controllers/request_controller_spec.rb
+++ b/spec/controllers/request_controller_spec.rb
@@ -1,28 +1,5 @@
require File.dirname(__FILE__) + '/../spec_helper'
-describe RequestController, "when showing the front page" do
- integrate_views
- fixtures :users
-
- it "should be successful" do
- get :frontpage
- response.should be_success
- end
-
- it "should have sign in/up link when not signed in" do
- get :frontpage
- response.should have_tag('a', "Sign in or sign up")
- end
-
- it "should have sign out link when signed in" do
- session[:user_id] = users(:bob_smith_user).id
- get :frontpage
- response.should have_tag('a', "Sign out")
- end
-
-
-end
-
describe RequestController, "when listing all requests" do
integrate_views
fixtures :info_requests, :outgoing_messages
@@ -91,7 +68,7 @@ describe RequestController, "when creating a new request" do
it "should redirect to front page if no public body specified" do
get :new
- response.should redirect_to(:action => 'frontpage')
+ response.should redirect_to(:controller => 'general', :action => 'frontpage')
end
it "should accept a public body parameter posted from the front page" do