Sha256: 9fc00cdc483b4dc43af6ccd5d0aa202a8e41e803c6399ff16bc3a49be1c4f630
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
require 'ramaze' require 'ramaze/spec/helper' require __DIR__/'../start' describe MainController do behaves_like 'http', 'xpath' ramaze :view_root => __DIR__/'../view', :public_root => __DIR__/'../public' it 'should show start page' do got = get('/') got.status.should == 200 puts got.body got.at('//title').text.strip.should == MainController.new.index end it 'should show /notemplate' do got = get('/notemplate') got.status.should == 200 got.at('//div').text.strip.should == MainController.new.notemplate end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
Pistos-ramaze-2008.09 | lib/proto/spec/main.rb |
manveru-ramaze-2008.09 | lib/proto/spec/main.rb |
manveru-ramaze-2008.10 | lib/proto/spec/main.rb |
ramaze-2008.11 | lib/proto/spec/main.rb |