Sha256: 240896744dcbe4b47cf9374917f8d1589ac97544882d3ce273c397dd3b21694c
Contents?: true
Size: 365 Bytes
Versions: 8
Compression:
Stored size: 365 Bytes
Contents
require 'test_helper' class TestIdGeneration < Test::Unit::TestCase should "generate file URLs using accessKey and file ID" do a = Progstr::Filer::Attachment.from_id(:avatar, "some-attachment-id") assert_match "/files/data/DEMO/some-attachment-id", a.url assert_match Progstr::Filer.host, a.url assert_match Progstr::Filer.host, a.url end end
Version data entries
8 entries across 8 versions & 1 rubygems