aboutsummaryrefslogtreecommitdiff
blob: 91a26fa9d4860ee5b6e43a5cc2f96538caca963d (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
require 'spec_helper'
require 'gorg/application'
require 'rack'

describe Gorg::Application do
  subject { Gorg::Application.new }

  let(:environment) { mock('environment') }

  before do
    $Config = {'root' => 'root path'}
  end

  it { should_not be_nil }

  pending "More fine-grained code that can be tested piece by piece" do
    specify { subject.call(environment).should be_a_kind_of Array }
    specify { subject.call(environment).size.should == 3 }

    specify { subject.call(environment)[0].should be_a_kind_of Integer }
    specify { subject.call(environment)[1].should be_a_kind_of Hash }
    specify { subject.call(environment)[2].should be_a_kind_of Array }
  end

end