Sha256: 30e028d3882a121ccc215d185ffccdb88b4b3da04e7ffb128783c588fcab8b50
Contents?: true
Size: 668 Bytes
Versions: 22
Compression:
Stored size: 668 Bytes
Contents
require 'spec/helper' spec_require 'liquid' require 'examples/templates/template_liquid' describe 'Template Liquid' 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 name = url.gsub(/^\//, '') response = get(url) response.status.should == 200 html = response.body html.should.not == nil html.should =~ %r(<title>Template::Liquid #{name}</title>) html.should =~ %r(<h1>The #{name} Template for Liquid</h1>) end end end
Version data entries
22 entries across 22 versions & 5 rubygems