Sha256: 2c5a644d89571eec2050701df21216f94fdaafc32cc4052a3599f479ab51ad0d
Contents?: true
Size: 532 Bytes
Versions: 3
Compression:
Stored size: 532 Bytes
Contents
require 'ramaze' require 'ramaze/spec' require __DIR__('../start') describe MainController do behaves_like :mock should 'show start page' do got = get('/') got.status.should == 200 got['Content-Type'].should == 'text/html' got.body.should =~ /<h1>Welcome to Ramaze!<\/h1>/ end should 'show /notemplate' do got = get('/notemplate') got.status.should == 200 got['Content-Type'].should == 'text/html' got.body.should =~ /there is no 'notemplate.xhtml' associated with this action/ end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
Pistos-ramaze-2009.04.08 | lib/proto/spec/main.rb |
manveru-ramaze-2009.04.01 | lib/proto/spec/main.rb |
manveru-ramaze-2009.04.08 | lib/proto/spec/main.rb |