Sha256: 3d5e97d4a64b264344a541a051b1ebf4b8c6cb2e3e9fe25d251506f1bbf35d01

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

require 'spec/spec_helper'

describe "esi choose" do
  
 it "should pick the first available choice" do
   build_app('spec/tags/fixtures/choose/simple1.html', {}).last.should == ["\n    Hey you\n  "]
 end
 
 it "should pick next available choice" do
   build_app('spec/tags/fixtures/choose/simple2.html', {}).last.should == ["\n    And you\n  "]
 end
 
 it "should take the otherwise block if there is no valid choice" do
   build_app('spec/tags/fixtures/choose/simple3.html', {}).last.should == [" \n    No good\n  "]
 end

  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esi-for-rack-0.0.4 spec/tags/choose_spec.rb