Sha256: 6938b282805d04e75d025e7d2fe06797c681d36b0dc6c53764620986a0fc4e28

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

require File.expand_path('spec_utils', __dir__)

describe 'Sparkle setup' do
  before(:all) do
    @config = App.config
    @config.project_dir = SpecUtils::TemporaryDirectory.directory.to_s
    @config.instance_eval do
      sparkle do
        release :base_url, 'http://example.com/'
        # release :public_key, 'public_key.pem'
        publish :public_key, '<YOUR-EDDSA-PUBLIC-KEY>'
        release :version, '1.0'

        # Optional config options
        release :feed_base_url, 'http://rss.example.com/'
        release :feed_filename, 'example.xml'
        release :notes_base_url, 'http://www.example.com/'
        release :notes_filename, 'example.html'
        release :package_base_url, 'http://download.example.com/'
        release :package_filename, 'example.zip'
        # publish :use_exported_private_key, true
      end
    end

    Rake::Task['sparkle:setup'].invoke
  end

  # it 'should create private certificate' do
  #   expect(File.exist?(@config.sparkle.private_key_path.to_s)).to be_truthy
  # end
  #
  # it 'should create public certificate' do
  #   expect(File.exist?(@config.sparkle.public_key_path.to_s)).to be_truthy
  # end

  it 'should add files to gitignore' do
    a = `cat .gitignore`
    expect(a.strip).not_to eq ''
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
motion-sparkle-sandbox-2.2 spec/setup_spec.rb
motion-sparkle-sandbox-2.1.1 spec/setup_spec.rb
motion-sparkle-sandbox-2.1.0 spec/setup_spec.rb