Sha256: 9197def6724611ad0ff134a227a5ca0d52292371bfeff77b1d5b9be50bc65384

Contents?: true

Size: 498 Bytes

Versions: 5

Compression:

Stored size: 498 Bytes

Contents

#          Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the MIT license.

require File.expand_path('../../../../spec/helper', __FILE__)

class SpecHello < Ramaze::Controller
  def index
    'automatically mapped'
  end
end

describe 'Lonely Controller automap' do
  behaves_like :rack_test

  it 'automatically creates an app and maps the controller into it' do
    get('/').body.should == 'automatically mapped'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ramaze-2023.01.06 spec/ramaze/controller/lonely_mapping.rb
ramaze-2012.12.08 spec/ramaze/controller/lonely_mapping.rb
ramaze-2012.12.08b spec/ramaze/controller/lonely_mapping.rb
ramaze-2012.04.14 spec/ramaze/controller/lonely_mapping.rb
ramaze-2012.03.07 spec/ramaze/controller/lonely_mapping.rb