Sha256: 08366356750b10a5349e88372e56000d85613a56e13d72b5b1fcf3da35517320

Contents?: true

Size: 544 Bytes

Versions: 14

Compression:

Stored size: 544 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 =~ /<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

14 entries across 14 versions & 5 rubygems

Version Path
Pistos-ramaze-2009.06.12 lib/proto/spec/main.rb
manveru-ramaze-2009.07 lib/proto/spec/main.rb
rjspotter-ramaze-2009.06.29 lib/proto/spec/main.rb
rjspotter-ramaze-2009.06.31 lib/proto/spec/main.rb
ramaze-2011.01.30 lib/proto/spec/main.rb
ramaze-2011.01 lib/proto/spec/main.rb
ramaze-2010.06.18 lib/proto/spec/main.rb
ns-ramaze-ext-0.0.8 example/bananaform/spec/main.rb
ramaze-2010.04.04 lib/proto/spec/main.rb
ramaze-2010.04 lib/proto/spec/main.rb
ramaze-2010.03 lib/proto/spec/main.rb
ramaze-2010.01 lib/proto/spec/main.rb
ramaze-2009.10 lib/proto/spec/main.rb
ramaze-2009.07 lib/proto/spec/main.rb