Sha256: 18817eedd20200b3398d7475d3bec7c3c3d3c03b248daeaf68ebf229adae9a30

Contents?: true

Size: 567 Bytes

Versions: 22

Compression:

Stored size: 567 Bytes

Contents

require 'spec/helper'

require 'examples/templates/template_ezamar'

describe 'Template Ezamar' do
  behaves_like 'http'
  ramaze

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

Version data entries

22 entries across 22 versions & 5 rubygems

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