Sha256: bf4166616394f3f5c318334b23da67a2ced6281a792aefad52d4687b6264b5ef
Contents?: true
Size: 719 Bytes
Versions: 20
Compression:
Stored size: 719 Bytes
Contents
require 'spec/helper' spec_require 'tenjin' require 'examples/templates/template_tenjin' describe 'Template Tenjin' 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::Tenjin #{name}</title>) html.should =~ %r(<h1>The #{name} Template for Tenjin</h1>) end end end
Version data entries
20 entries across 20 versions & 5 rubygems