spec/examples/templates/template_remarkably.rb in Pistos-ramaze-2009.02 vs spec/examples/templates/template_remarkably.rb in Pistos-ramaze-2009.04.08

- old
+ new

@@ -1,23 +1,9 @@ require 'spec/helper' +require 'ramaze/spec/helper/template_examples' spec_require 'remarkably/engines/html' require 'examples/templates/template_remarkably' -describe 'Template Remarkably' 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::Remarkably (internal|external)</title>} - html.should =~ %r{<h1>The (internal|external) Template for Remarkably</h1>} - end - end +describe 'Template Remarkably' do |describe| + ::Ramaze::Spec::Examples::Templates.tests( describe, 'Remarkably' ) end