aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_general_controller.spec
blob: c566ed2c3801a41e4d39d1299ac37fb07b0c177f (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 AdminGeneralController, "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