aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_controller_spec.rb
blob: f2c6c8038dfa5dc5379e65641b7a80401c4895eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require File.dirname(__FILE__) + '/../spec_helper'

describe AdminController, "when viewing front page of admin interface" do
    integrate_views
  
    it "should render the front page" 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