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