Sha256: 039cad2990f3bbc69eb14e2e4820ac2f4db1e273b86531c8f1354fd3134b8762
Contents?: true
Size: 624 Bytes
Versions: 18
Compression:
Stored size: 624 Bytes
Contents
require File.join(File.dirname(__FILE__),'../../spec_helper') describe IMW::Schemes::HTTP do describe "finding its effective basename" do it "should use the real basename when present" do IMW.open('http://www.google.com/foobar').effective_basename.should == 'foobar' end it "should use '_index' when at the root (without a slash)" do IMW.open('http://www.google.com').effective_basename.should == '_index' end it "should use '_index' when at the root (even when a slash is given)" do IMW.open('http://www.google.com/').effective_basename.should == '_index' end end end
Version data entries
18 entries across 18 versions & 1 rubygems