Sha256: c3fa1586ce35f5bfb51b5877047fc385e634efcbc87f18c1c584907bf28ce50d
Contents?: true
Size: 731 Bytes
Versions: 1
Compression:
Stored size: 731 Bytes
Contents
# Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. 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_xpath('//title').text.strip.should == MainController.new.index end it 'should show /notemplate' do got = get('/notemplate') got.status.should == 200 got.at_xpath('//body').text.strip.should == MainController.new.notemplate end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.0 | lib/proto/spec/main.rb |