From 9249268bd7d3b0585dda7b6a5943d44570aab823 Mon Sep 17 00:00:00 2001 From: francis Date: Thu, 20 Mar 2008 11:58:20 +0000 Subject: Improvements to test code for requests, users and admin. --- spec/controllers/admin_controller_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec/controllers/admin_controller_spec.rb') diff --git a/spec/controllers/admin_controller_spec.rb b/spec/controllers/admin_controller_spec.rb index 2d55daa87..f2c6c8038 100644 --- a/spec/controllers/admin_controller_spec.rb +++ b/spec/controllers/admin_controller_spec.rb @@ -7,4 +7,14 @@ describe AdminController, "when viewing front page of admin interface" do get :index response.should render_template('index') end + + it "should render the front page with time line for last month" do + get :index, :month => 1 + response.should render_template('index') + end + + it "should render the front page with time line for all time" do + get :index, :all => 1 + response.should render_template('index') + end end -- cgit v1.2.3