Sha256: 30ef4677b0fcd733cff7a4996d82818e34c82a7592f5acb22b5b3e5e37d0a56a

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

require File.dirname(__FILE__) + '/../helpers'
require 'bloggit'

class TemplateTest < Test::Unit::TestCase

  def setup
    site = Bloggit::Site.from_file(File.join(File.dirname(__FILE__), '../fixtures/test.blog') )
    Template.config do |t|
      t.site = site
    end
  end

  should "render templates from text" do
    output = Template.from_text('Hello, <%= name %>').render :template=>{:name=>'Sally'}
    assert "Hello, Sally", output
  end

  should "generate URLs correctly"
  should "render templates from file"

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bloggit-1.0.3 test/unit/template_test.rb
bloggit-1.0.7 test/unit/template_test.rb