Sha256: 160afe34940b2af6dc7365ef15c75bd10120956ce65e92446df239c174298a47
Contents?: true
Size: 583 Bytes
Versions: 24
Compression:
Stored size: 583 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
24 entries across 24 versions & 8 rubygems