Sha256: e6b955ca17db97d5e6f8e80734d063cac209adadc74ecb097a454f8a87696598

Contents?: true

Size: 553 Bytes

Versions: 28

Compression:

Stored size: 553 Bytes

Contents

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

describe "slash_path_empty" do 
  it "considers a / path as empty" do
    app(:slash_path_empty) do |r|
      r.is{"1"}
      r.is("a"){"2"}
      r.get("b"){"3"}
    end

    body("").must_equal '1'
    body.must_equal '1'
    body("a").must_equal ''
    body("/a").must_equal '2'
    body("/a/").must_equal '2'
    body("/a/b").must_equal ''
    body("b").must_equal ''
    body("/b").must_equal '3'
    body("/b/").must_equal '3'
    body("/b/c").must_equal ''
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
roda-2.29.0 spec/plugin/slash_path_empty_spec.rb
roda-2.28.0 spec/plugin/slash_path_empty_spec.rb
roda-2.27.0 spec/plugin/slash_path_empty_spec.rb
roda-2.26.0 spec/plugin/slash_path_empty_spec.rb
roda-2.25.0 spec/plugin/slash_path_empty_spec.rb
roda-2.24.0 spec/plugin/slash_path_empty_spec.rb
roda-2.23.0 spec/plugin/slash_path_empty_spec.rb
roda-2.22.0 spec/plugin/slash_path_empty_spec.rb
roda-2.21.0 spec/plugin/slash_path_empty_spec.rb
roda-2.20.0 spec/plugin/slash_path_empty_spec.rb
roda-2.19.0 spec/plugin/slash_path_empty_spec.rb
roda-2.18.0 spec/plugin/slash_path_empty_spec.rb
roda-2.17.0 spec/plugin/slash_path_empty_spec.rb
roda-2.16.0 spec/plugin/slash_path_empty_spec.rb
roda-2.15.0 spec/plugin/slash_path_empty_spec.rb
roda-2.14.0 spec/plugin/slash_path_empty_spec.rb
roda-2.13.0 spec/plugin/slash_path_empty_spec.rb
roda-2.12.0 spec/plugin/slash_path_empty_spec.rb
roda-2.11.0 spec/plugin/slash_path_empty_spec.rb
roda-2.10.0 spec/plugin/slash_path_empty_spec.rb