Sha256: dc8a3e3656b023f49283132d91df36b84b58a36f62edd45a8daa431ca01113c9

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 Bytes

Contents

require 'ramaze'
require 'ramaze/spec/bacon'

require __DIR__('../app')

describe MainController do
  behaves_like :rack_test

  should 'show start page' do
    get('/').status.should == 200
    last_response['Content-Type'].should == 'text/html'
    last_response.should =~ /Congratulations, Ramaze is running fine/
  end

  should 'show /notemplate' do
    get('/notemplate').status.should == 200
    last_response['Content-Type'].should == 'text/html'
    last_response.should =~ /There is no 'notemplate\.xhtml' associated with this action\./
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ramaze-2012.04.14 lib/proto/spec/main.rb
ramaze-2012.03.07 lib/proto/spec/main.rb
ramaze-2011.12.28 lib/proto/spec/main.rb
ramaze-2011.10.23 lib/proto/spec/main.rb
ramaze-2011.07.25 lib/proto/spec/main.rb