aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/make-bind-include.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-21 12:26:00 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-21 12:26:00 +0100
commite2c018a18d972679160220b6cf76fa1a337e0a08 (patch)
treeb1a97830c88695e58ca15f059cf85673d14532f1 /bootstrap/make-bind-include.pl
parent9294a2f2b20a9289a9b5c4a4b72f308de85d8c30 (diff)
NMS: Fix distro
Diffstat (limited to 'bootstrap/make-bind-include.pl')
0 files changed, 0 insertions, 0 deletions
lue='hotfix/0.21.0.16'>hotfix/0.21.0.16 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/admin_general_controller_spec.rb
blob: cc2ec41b4a64462649bf3df5c6936802cc57ca3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe AdminGeneralController do

    describe "when viewing front page of admin interface" do

        render_views
        before { basic_auth_login @request }

        it "should render the front page" do
            get :index
            response.should render_template('index')
        end

    end

    describe 'when viewing the timeline' do

        it 'should assign an array of events in order of descending date to the view' do
            get :timeline, :all => 1
            previous_event = nil
            previous_event_at = nil
            assigns[:events].each do |event, event_at|
                if previous_event
                    (event_at <= previous_event_at).should be_true
                end
                previous_event = event
                previous_event_at = event_at
            end
        end

    end
end