Sha256: 2d09ee43a0c05d504f13c2f043449d81eef3069c5a986cb16e941934e64a6077

Contents?: true

Size: 573 Bytes

Versions: 13

Compression:

Stored size: 573 Bytes

Contents

require 'ramaze'
require 'ramaze/spec'

require __DIR__('../start')
Ramaze.options.roots = __DIR__('../')

describe MainController do
  behaves_like :mock

  should 'show start page' do
    get('/').status.should == 200
    last_response['Content-Type'].should == 'text/html'
    last_response.should =~ /<h1>Welcome to Ramaze!<\/h1>/
  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

13 entries across 13 versions & 2 rubygems

Version Path
manveru-ramaze-2009.04.18 lib/proto/spec/main.rb
manveru-ramaze-2009.04.22 lib/proto/spec/main.rb
manveru-ramaze-2009.04 lib/proto/spec/main.rb
manveru-ramaze-2009.05.08 lib/proto/spec/main.rb
manveru-ramaze-2009.05 lib/proto/spec/main.rb
manveru-ramaze-2009.06.04 lib/proto/spec/main.rb
manveru-ramaze-2009.06.12 lib/proto/spec/main.rb
manveru-ramaze-2009.06 lib/proto/spec/main.rb
ramaze-2009.04 lib/proto/spec/main.rb
ramaze-2009.05 lib/proto/spec/main.rb
ramaze-2009.06.12 lib/proto/spec/main.rb
ramaze-2009.06 lib/proto/spec/main.rb
ramaze-2009.06.04 lib/proto/spec/main.rb