/usr/share/libramaze-ruby1.8/proto/spec/main.rb is in libramaze-ruby1.8 2010.06.18-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 =~ /<h1>Welcome to Ramaze!<\/h1>/
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
|