Sha256: 97da4f9ed6e8de4209eeb1d30571f40a86276185063f7dd31df0225c56ac6fc5
Contents?: true
Size: 748 Bytes
Versions: 4
Compression:
Stored size: 748 Bytes
Contents
# 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' testcase_requires 'amrita2' class TCTemplateAmritaController < Ramaze::Controller template_root 'spec/ramaze/template/amrita2/' trait :engine => Ramaze::Template::Amrita2 def title "hello world" end def body "Amrita2 is an HTML template library for Ruby" end end describe "Simply calling" do ramaze(:mapping => {'/' => TCTemplateAmritaController}) it "should respond to /data" do get('/data').body.strip.should == %{<html> <body> <h1>hello world</h1> <p>Amrita2 is an HTML template library for Ruby</p> </body> </html>} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.1.3 | spec/ramaze/template/amrita2.rb |
ramaze-0.1.1 | spec/ramaze/template/amrita2.rb |
ramaze-0.1.2 | spec/ramaze/template/amrita2.rb |
ramaze-0.1.4 | spec/ramaze/template/amrita2.rb |