diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-12-09 12:21:39 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-12-09 12:21:39 +0000 |
commit | 9116d60f53bf2eb0bcf935916e660fac38be212a (patch) | |
tree | 3ebbdd3d4bd6a4db85ad6d6e643fb408fbd6a72d /spec/controllers/general_controller_spec.rb | |
parent | f2a0c9485dd2655c11e9717583c7d3c7b3a49d7a (diff) | |
parent | 31187a4d13a7f914ee5fe4eae0af0a268bce90f9 (diff) |
Merge branch 'feature/display-social-media-when-configured' into rails-3-develop
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r-- | spec/controllers/general_controller_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb index e67cc9492..7590a5b42 100644 --- a/spec/controllers/general_controller_spec.rb +++ b/spec/controllers/general_controller_spec.rb @@ -42,6 +42,17 @@ describe GeneralController, 'when getting the blog feed' do assigns[:blog_items].count.should == 1 end + context 'if no feed is configured' do + + before do + AlaveteliConfiguration.stub!(:blog_feed).and_return('') + end + + it 'should raise an ActiveRecord::RecordNotFound error' do + lambda{ get :blog }.should raise_error(ActiveRecord::RecordNotFound) + end + end + end describe GeneralController, "when showing the frontpage" do |