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