Sha256: ba8ff4415359f629fccd1445fe7acad34857afa5c78fe03455cf1dd86e231db7
Contents?: true
Size: 568 Bytes
Versions: 2
Compression:
Stored size: 568 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('//div').text.strip.should == MainController.new.notemplate end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.9.1 | lib/proto/spec/main.rb |
ramaze-0.3.9 | lib/proto/spec/main.rb |