summaryrefslogtreecommitdiff
path: root/spec/main.rb
blob: 4531b7e6b5cade40190b1643ce5af962abf38cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'ramaze'
require 'ramaze/spec/bacon'

require __DIR__('../app')

describe MainController do
  behaves_like :rack_test

  should 'show start page' do
    get('/').status.should == 200
    last_response['Content-Type'].should == 'text/html'
    last_response.should =~ /Congratulations, Ramaze is running fine/
  end

  should 'show /notemplate' do
    get('/notemplate').status.should == 200
    last_response['Content-Type'].should == 'text/html'
    last_response.should =~ /There is no 'notemplate\.xhtml' associated with this action\./
  end
end