Sha256: 24f0e0f3f9aff53756169c64169cc31ef86a1a603644700590bbe272572ce261

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

require 'spec/helper'

spec_require 'haml'
require 'examples/templates/template_haml'

describe 'Template Haml' 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
      html = get(url).body
      html.should.not == nil
      html.should =~ %r{<title>Template::Haml (internal|external)</title>}
      html.should =~ %r{<h1>The (internal|external) Template for Haml</h1>}
    end
  end
end


Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
clivecrous-ramaze-0.3.9.5 spec/examples/templates/template_haml.rb
manveru-ramaze-2008.07 spec/examples/templates/template_haml.rb
manveru-ramaze-2008.08 spec/examples/templates/template_haml.rb
ramaze-0.3.5 spec/examples/templates/template_haml.rb
ramaze-0.3.0 spec/examples/templates/template_haml.rb
ramaze-0.3.9.1 spec/examples/templates/template_haml.rb
ramaze-0.3.9 spec/examples/templates/template_haml.rb
ramaze-2008.06 spec/examples/templates/template_haml.rb