Sha256: 290831c43633babe248a64b2ff4fbb099966104b88c629f0224d38f0cf4ce7bb

Contents?: true

Size: 497 Bytes

Versions: 1

Compression:

Stored size: 497 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'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ramaze-0.3.5 spec/ramaze/template/bijou.rb