Sha256: f9eadf4d31b2fb62d4c2408bc911c6f6b773b3c1bc4492efa085e508caf0260c

Contents?: true

Size: 564 Bytes

Versions: 4

Compression:

Stored size: 564 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
    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
clivecrous-ramaze-0.3.9.5 lib/proto/spec/main.rb
manveru-ramaze-2008.07 lib/proto/spec/main.rb
manveru-ramaze-2008.08 lib/proto/spec/main.rb
ramaze-2008.06 lib/proto/spec/main.rb