Sha256: 03de95c72509dcfe1bbf5ae147fcd28c36d737cf47895cab45111801c84370a7
Contents?: true
Size: 564 Bytes
Versions: 14
Compression:
Stored size: 564 Bytes
Contents
# Copyright (c) 2009 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require File.expand_path('../../../../spec/helper', __FILE__) class SpecHelperRequestAccessor < Ramaze::Controller map '/' helper :request_accessor def index get? ? 'GET' : request_method end end describe 'Ramaze::Helper::RequestAccessor' do behaves_like :rack_test it 'gives direct access to methods in Request' do get('/').body.should == 'GET' put('/').body.should == 'PUT' end end
Version data entries
14 entries across 14 versions & 3 rubygems