Sha256: fa393389de6118e3d8f4179510ddcf745cdfd81586fb78495ebfa2d9ad588ce7
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
require 'spec/helper' class TCActionOne < Ramaze::Controller map '/' def index 'Hello, World!' end def foo Ramaze::Action(:controller => self.class, :method => :bar).render end def bar "yo from bar" end end ramaze describe 'Action rendering' do behaves_like "http" it 'should render' do action = Ramaze::Action(:method => :index, :controller => TCActionOne) action.render.should == 'Hello, World!' end it 'should render inside the controller' do get('/foo').body.should == 'yo from bar' end end
Version data entries
5 entries across 5 versions & 2 rubygems