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

Version Path
progstr-filer-0.8.7 test/test_attachment_url.rb
progstr-filer-0.8.6 test/test_attachment_url.rb
progstr-filer-0.8.5 test/test_attachment_url.rb
progstr-filer-0.8.4 test/test_attachment_url.rb
progstr-filer-0.8.3 test/test_attachment_url.rb
progstr-filer-0.8.2 test/test_attachment_url.rb
progstr-filer-0.8.1 test/test_attachment_url.rb
progstr-filer-0.8.0 test/test_attachment_url.rb