Sha256: 288441d06ce7150fa54810f3c49d05b2295fc876ff91dd9e278894279ca734ea

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

require 'spec_helper'
require 'rexml/document'

describe Glitter do

  # # Note that uncommenting and running this spec *will* upload a single file to your S3 bucket
  # it "should release to channel" do
  #   Glitter::Release::Sparkle.new Glitter::Server.new.channel('test-channel'), "1.1.2-#{rand}" do |r|
  #     r.executable = File.open(__FILE__)
  #     r.notes = %[Did you know that its #{Time.now}? Wait, you can only answer yes to that question.]
  #     r.minimum_system_version = "10.10"
  #   end.push.head
  # end

  it "AWS path segments are parsed correctly for an item at top level of version folder" do
    channel, version, key = Glitter::Release.object_segments("/channel/version/some-item")
    expect(channel).to eq("channel")
    expect(version).to eq("version")
    expect(key).to eq("some-item")
  end

  it "AWS path segments are parsed correctly for an item in subfolder of version folder" do
    channel, version, key = Glitter::Release.object_segments("/channel/version/some-dir/some-item")
    expect(channel).to eq("channel")
    expect(version).to eq("version")
    expect(key).to eq("some-dir/some-item")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glitter-2.2.1 spec/lib/glitter_spec.rb
glitter-2.2.0 spec/lib/glitter_spec.rb