diff options
author | francis <francis> | 2008-03-20 11:58:20 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-20 11:58:20 +0000 |
commit | 9249268bd7d3b0585dda7b6a5943d44570aab823 (patch) | |
tree | 168fd143c816328b3844df321e69988be70bf5a3 /spec/controllers/admin_controller_spec.rb | |
parent | 81b615fa3f2db6d26140cf2898666e138a15e027 (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.rb | 10 |
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 |