Sha256: 30e028d3882a121ccc215d185ffccdb88b4b3da04e7ffb128783c588fcab8b50

Contents?: true

Size: 668 Bytes

Versions: 22

Compression:

Stored size: 668 Bytes

Contents

require 'spec/helper'

spec_require 'liquid'
require 'examples/templates/template_liquid'

describe 'Template Liquid' do
  behaves_like 'http'
  ramaze

  it '/' do
    get('/').body.strip.should ==
      "<a href=\"/\">Home</a> | <a href=\"/internal\">internal</a> | <a href=\"/external\">external</a>"
  end

  %w[/internal /external].each do |url|
    it url do
      name = url.gsub(/^\//, '')
      response = get(url)
      response.status.should == 200
      html = response.body
      html.should.not == nil
      html.should =~ %r(<title>Template::Liquid #{name}</title>)
      html.should =~ %r(<h1>The #{name} Template for Liquid</h1>)
    end
  end
end



Version data entries

22 entries across 22 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 spec/examples/templates/template_liquid.rb
Pistos-ramaze-2008.12 spec/examples/templates/template_liquid.rb
Pistos-ramaze-2009.01 spec/examples/templates/template_liquid.rb
Pistos-ramaze-2009.02 spec/examples/templates/template_liquid.rb
clivecrous-ramaze-0.3.9.5 spec/examples/templates/template_liquid.rb
manveru-ramaze-2008.07 spec/examples/templates/template_liquid.rb
manveru-ramaze-2008.08 spec/examples/templates/template_liquid.rb
manveru-ramaze-2008.09 spec/examples/templates/template_liquid.rb
manveru-ramaze-2008.10 spec/examples/templates/template_liquid.rb
manveru-ramaze-2008.12 spec/examples/templates/template_liquid.rb
manveru-ramaze-2009.01 spec/examples/templates/template_liquid.rb
ptomato-ramaze-2009.02.1 spec/examples/templates/template_liquid.rb
ptomato-ramaze-2009.02 spec/examples/templates/template_liquid.rb
ramaze-0.3.5 spec/examples/templates/template_liquid.rb
ramaze-0.3.0 spec/examples/templates/template_liquid.rb
ramaze-0.3.9.1 spec/examples/templates/template_liquid.rb
ramaze-0.3.9 spec/examples/templates/template_liquid.rb
ramaze-2008.11 spec/examples/templates/template_liquid.rb
ramaze-2008.06 spec/examples/templates/template_liquid.rb
ramaze-2009.01 spec/examples/templates/template_liquid.rb