aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_controller_spec.rb
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-20 11:58:20 +0000
committerfrancis <francis>2008-03-20 11:58:20 +0000
commit9249268bd7d3b0585dda7b6a5943d44570aab823 (patch)
tree168fd143c816328b3844df321e69988be70bf5a3 /spec/controllers/admin_controller_spec.rb
parent81b615fa3f2db6d26140cf2898666e138a15e027 (diff)
Improvements to test code for requests, users and admin.
Diffstat (limited to 'spec/controllers/admin_controller_spec.rb')
-rw-r--r--spec/controllers/admin_controller_spec.rb10
1 files changed, 10 insertions, 0 deletions
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