summaryrefslogtreecommitdiff
path: root/spec/integration/controllers/main.rb
blob: 92ecb7e364e30fab3530215d50898f878bfc1d2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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