Sha256: bf267d7c8c46d8b30e3e73527f2cd87319b53393d8cc6ce7506e241b88245563

Contents?: true

Size: 706 Bytes

Versions: 2

Compression:

Stored size: 706 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 __DIR__/:amrita2
  engine :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

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-0.2.0 spec/ramaze/template/amrita2.rb
ramaze-0.2.1 spec/ramaze/template/amrita2.rb