# Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. require 'spec/helper' class TCTemplateController < Ramaze::Controller map :/ template_root __DIR__/:ezamar engine :Bijou def hello "<% planet = 'World' %> Hello, <%= planet %>!" end end describe "Bijou" do behaves_like 'http' ramaze it "hello world" do get('/hello').body.strip.should == 'Hello, World!' end end