Sha256: 507d133dee32974a7dbed570a619accaea18d26cd117cd267f188a51e8cfc78f

Contents?: true

Size: 530 Bytes

Versions: 14

Compression:

Stored size: 530 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 SpecAction < Ramaze::Controller
  map '/'
  provide :html, :None

  def index
    'Hello, World!'
  end

  def bar
    "yo from bar"
  end
end

describe 'Action#render' do
  it 'works when Action is manually created' do
    action = SpecAction.resolve('/')
    action.render.should == 'Hello, World!'
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

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