Sha256: 05437ad55f4ce9ca6a61dd02693b912c1da387822ec50267c6874a4774110b78

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__)))

describe "empty_root plugin" do 
  it "makes root match on emtpy path" do
    app(:empty_root) do |r|
      r.root{"root"}
      "notroot"
    end

    body.should == 'root'
    body("").should == 'root'
    body("a").should == 'notroot'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
roda-2.2.0 spec/plugin/empty_root_spec.rb
roda-2.1.0 spec/plugin/empty_root_spec.rb
roda-2.0.0 spec/plugin/empty_root_spec.rb
roda-1.3.0 spec/plugin/empty_root_spec.rb
roda-1.2.0 spec/plugin/empty_root_spec.rb