Sha256: 95c9ea472261433a1106a4489ed2a10bc626d36f5f69287535c68e5db671ae86
Contents?: true
Size: 890 Bytes
Versions: 3
Compression:
Stored size: 890 Bytes
Contents
require 'horseman/action' require 'uri' describe Horseman::Action do context "when given a URL without a query string" do subject {described_class.new(URI.parse('http://www.example.com/path/file.html'))} it "provides access to full URL" do subject.url.should eq 'http://www.example.com/path/file.html' end it "provides access to a relative path root" do subject.relative_root.should eq 'http://www.example.com/path/' end end context "when given a URL with a query string" do subject {described_class.new(URI.parse('http://www.example.com/path/file.html?q1=value'))} it "provides access to full URL" do subject.url.should eq 'http://www.example.com/path/file.html?q1=value' end it "provides access to a relative path root" do subject.relative_root.should eq 'http://www.example.com/path/' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
horseman-0.0.5 | spec/horseman/action_spec.rb |
horseman-0.0.4 | spec/horseman/action_spec.rb |
horseman-0.0.3 | spec/horseman/action_spec.rb |