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

Version Path
Pistos-ramaze-2008.09 spec/examples/templates/template_redcloth.rb
Pistos-ramaze-2008.12 spec/examples/templates/template_redcloth.rb
Pistos-ramaze-2009.01 spec/examples/templates/template_redcloth.rb
Pistos-ramaze-2009.02 spec/examples/templates/template_redcloth.rb
clivecrous-ramaze-0.3.9.5 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2008.07 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2008.08 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2008.09 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2008.10 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2008.12 spec/examples/templates/template_redcloth.rb
manveru-ramaze-2009.01 spec/examples/templates/template_redcloth.rb
ptomato-ramaze-2009.02.1 spec/examples/templates/template_redcloth.rb
ptomato-ramaze-2009.02 spec/examples/templates/template_redcloth.rb
ramaze-0.3.9.1 spec/examples/templates/template_redcloth.rb
ramaze-0.3.9 spec/examples/templates/template_redcloth.rb
ramaze-2009.01 spec/examples/templates/template_redcloth.rb
ramaze-2008.11 spec/examples/templates/template_redcloth.rb
ramaze-2008.06 spec/examples/templates/template_redcloth.rb
ramaze-2009.03 spec/examples/templates/template_redcloth.rb
ramaze-2009.02 spec/examples/templates/template_redcloth.rb