Sha256: be85708f22225660e0d63cb656541a8063174e2c0564c6d4eba3fadfc5702f89

Contents?: true

Size: 324 Bytes

Versions: 2

Compression:

Stored size: 324 Bytes

Contents

require 'spec/helper'

class TCActionOne < Ramaze::Controller
  def index
    'Hello, World!'
  end
end

describe 'Action rendering' do
  before :all do
    ramaze
  end

  it 'should render' do
    action = Ramaze::Action(:method => :index, :controller => TCActionOne)
    action.render.should == 'Hello, World!'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.1.2 spec/ramaze/action/render.rb
ramaze-0.1.3 spec/ramaze/action/render.rb