aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-03-27 16:27:07 +0000
committerLouise Crow <louise.crow@gmail.com>2015-03-27 16:27:07 +0000
commitf43bb580cf8047783bda7dd7db63381fe3189519 (patch)
treeff4d61d18036938b279de185d9b50c5ee773296d /spec/controllers/general_controller_spec.rb
parent96a2a89e20e04a3fee75ff6e042f301f738bd864 (diff)
parentb6afb0020ba36b4fde68c4d6b1e9ae98b0a01463 (diff)
Merge branch 'issues/2218-filtering-links' of ssh://git.mysociety.org/data/git/public/alaveteli into release/0.21
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r--spec/controllers/general_controller_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb
index 128a42556..ae8d4f256 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -102,6 +102,14 @@ describe GeneralController, "when showing the frontpage" do
end
end
+ it 'should generate a feed URL for successful requests' do
+ get :frontpage
+ assigns[:feed_autodetect].size.should == 1
+ successful_request_feed = assigns[:feed_autodetect].first
+ successful_request_feed[:title].should == 'Successful requests'
+ end
+
+
it "should render the front page with default language and ignore the browser setting" do
config = MySociety::Config.load_default()
config['USE_DEFAULT_BROWSER_LANGUAGE'] = false