Sha256: fedd0e7db2796597fa262e7b758fd8d1050414415cd3eb6ed9cd298bf4d9cc6a
Contents?: true
Size: 960 Bytes
Versions: 6
Compression:
Stored size: 960 Bytes
Contents
require 'spec_helper' verify = lambda { |output| output.should =~ %r(<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=http://google.com"></head></html>) } verify_with_interpol = lambda { |output| output.should =~ %r(<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0;url=http://mysite/bacon/"></head></html>) } 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 } ] describe Awestruct::Handlers::TiltHandler.to_s + "-Redirect" do let(:additional_config) { {:interpolate => true, :crunchy => 'bacon', :base_url => 'http://mysite' } } it_should_behave_like "a handler", theories end
Version data entries
6 entries across 6 versions & 1 rubygems