Sha256: 2064429d8b0886cde4c26611a35eacc6d84ded5cf42a8f8c0822dba8e85b1453
Contents?: true
Size: 734 Bytes
Versions: 20
Compression:
Stored size: 734 Bytes
Contents
require 'spec/helper' spec_require 'redcloth' spec_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
20 entries across 20 versions & 5 rubygems