Sha256: b335cd78589699c35ce2ef4b7d70eb4af363f59a3237fa665377dd82d4b7346e
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'ramaze' require 'ramaze/spec/helper' require __DIR__/'..'/'start' describe MainController do behaves_like 'http', 'xpath' ramaze :template_root => __DIR__/'../view', :public_root => __DIR__/'../public' it 'should show start page' do got = get('/') got.status.should == 200 got.at('//title').text.strip.should == MainController.new.index end it 'should show /notemplate' do got = get('/notemplate') got.status.should == 200 got.at('//body').text.strip.should == MainController.new.notemplate end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | lib/proto/spec/main.rb |