Sha256: ba3521e8e685b46839874bcd3f525a8110de54eab9a1747f6ae82c26829303eb
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
# -*- coding: utf-8 -*- require "sixarm_ruby_blob_test" describe Blob do let(:dir){ "foo" } let(:base){ "bar" } let(:blob){ Blob.new(dir: dir, base: base) } describe "#uri_dir" do it "is the dir" do blob.uri_dir.must_equal dir end end describe "#uri_base" do it "is the base" do blob.uri_base.must_equal base end end describe "#uri" do it "returns a URI that we can parse successfully" do URI.parse(blob.uri) end end describe "#uri_cacheless" do it "gets a URI that we can parse successfully" do URI.parse(blob.uri_cacheless) end it "gets a URI that has a unique id appended" do blob.uri_cacheless.must_match /\?cacheless=[-0-9abcdef]{36}$/ end it "returns a URI that is different each time" do x = blob.uri_cacheless y = blob.uri_cacheless x.wont_equal y end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_blob-1.0.3 | test/sixarm_ruby_blob_test/uri_test.rb |