require 'spec_helper' verify = lambda { |output| output.should =~ %r() } verify_with_interpol = lambda { |output| output.should =~ %r() } theories = [ { :page => "simple-redirect-page.redirect", :simple_name => "simple-redirect-page", :syntax => :text, :extension => '.html', :matcher => verify }, { :page => "redirect-page.redirect", :simple_name => "redirect-page", :syntax => :text, :extension => '.html', :matcher => verify_with_interpol, :site_overrides => { :interpolate => true, :crunchy => 'bacon', :base_url => 'http://mysite' } } ] describe Awestruct::Handlers::TiltHandler.to_s + "-Redirect" do it_should_behave_like "a handler", theories end