Sha256: 5381a89b79a2a65156357f101d5a7dd67abc9230d4dd9588d09fee0bc97d0799
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
require 'relish/commands/handle' module Relish module Commands describe Handle do context "converting to resource URL" do context "with publisher and project id" do handle = Handle.new('foo/bar') it "converts to a URL with a querystring parameter" do handle.resource_url.should == "projects/bar?publisher_id=foo" end end context "with project id only" do handle = Handle.new('bar') it "converts to one querystring parameter" do handle.resource_url.should == "projects/bar" end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relish-0.7.1 | spec/relish/commands/handle_spec.rb |
relish-0.7 | spec/relish/commands/handle_spec.rb |