aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_controller_spec.rb
diff options
context:
space:
mode:
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