Sha256: 29bf9c555f27b6ce0ca4ee0e9f632a2948cb3040313b41c98b9f39f394e79390

Contents?: true

Size: 599 Bytes

Versions: 22

Compression:

Stored size: 599 Bytes

Contents

require 'spec/helper'

spec_require 'markaby'
require 'examples/templates/template_markaby'

describe 'Template Markaby' 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
      html = get(url).body
      html.should.not == nil
      html.should =~ %r{<title>Template::Markaby (internal|external)</title>}
      html.should =~ %r{<h1>The (internal|external) Template for Markaby</h1>}
    end
  end
end

Version data entries

22 entries across 22 versions & 5 rubygems

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