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

Version Path
Pistos-ramaze-2009.06.12 spec/ramaze/helper/request_accessor.rb
manveru-ramaze-2009.07 spec/ramaze/helper/request_accessor.rb
ramaze-2011.12.28 spec/ramaze/helper/request_accessor.rb
ramaze-2011.10.23 spec/ramaze/helper/request_accessor.rb
ramaze-2011.07.25 spec/ramaze/helper/request_accessor.rb
ramaze-2011.01.30 spec/ramaze/helper/request_accessor.rb
ramaze-2011.01 spec/ramaze/helper/request_accessor.rb
ramaze-2010.06.18 spec/ramaze/helper/request_accessor.rb
ramaze-2010.04.04 spec/ramaze/helper/request_accessor.rb
ramaze-2010.04 spec/ramaze/helper/request_accessor.rb
ramaze-2010.03 spec/ramaze/helper/request_accessor.rb
ramaze-2010.01 spec/ramaze/helper/request_accessor.rb
ramaze-2009.10 spec/ramaze/helper/request_accessor.rb
ramaze-2009.07 spec/ramaze/helper/request_accessor.rb