Sha256: f5645a6588c9660fa547a4335b6a2be2ba55dac17779fc80bb88332377929239

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

require 'spec/spec_helper'

describe "esi nested" do
  
  it "nested1" do
    build_app('spec/tags/fixtures/nested/complex.html', {}).last.should == ["<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body>\n    BLAH!\n  </body></html>\n"]
  end
  
  it "nested2" do
    build_app('spec/tags/fixtures/nested/complex.html', {'/include' => "<p>This is great</p>"}).last.should == ["<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n<html><body>\n    This is my include: <p>This is great</p>\n    Choice/true/Choice\n  </body></html>\n"]
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joshbuddy-esi-for-rack-0.0.1 spec/tags/nested_spec.rb
joshbuddy-esi-for-rack-0.0.2 spec/tags/nested_spec.rb
joshbuddy-esi-for-rack-0.0.3 spec/tags/nested_spec.rb