Sha256: 98ed2b98359ab79dd24086636fd83197f6e69d3d9bab08be210adda6fd0e6284
Contents?: true
Size: 729 Bytes
Versions: 1
Compression:
Stored size: 729 Bytes
Contents
require 'spec/helper' spec_require 'redcloth' require 'examples/templates/template_redcloth' describe 'Template RedCloth' do behaves_like 'http' ramaze it '/' do html = get('/').body.strip html.should =~ %r(<a href=\"/\">Home</a>) html.should =~ %r(<a href=\"/internal\">internal</a>) html.should =~ %r(<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::RedCloth #{name}</title>) html.should =~ %r(<h1>The #{name} Template for RedCloth</h1>) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ramaze-0.3.5 | spec/examples/templates/template_redcloth.rb |