Sha256: 315a8e4ddf0c7faecd67b71a720cd89b03c9181287714380776aaeb1fbfbd209

Contents?: true

Size: 745 Bytes

Versions: 1

Compression:

Stored size: 745 Bytes

Contents

require "test_helper"

module Suvii
  class AcceptanceTest < Minitest::Test
    attr_reader :destination

    def teardown
      FileUtils.rm_rf(destination)
    end

    def test_zip
      @destination = Suvii.fetch(
        "https://github.com/torba-rb/Trumbowyg/archive/1.1.7.zip",
        strip_components: 1,
        max_attempts_for_200_response: 2
      )
      assert_dirs_equal "test/fixtures/results/Trumbowyg-1.1.7", destination
    end

    def test_targz
      @destination = Suvii.fetch(
        "https://github.com/torba-rb/Trumbowyg/archive/1.1.7.tar.gz",
        strip_components: 1,
        max_attempts_for_200_response: 2
      )
      assert_dirs_equal "test/fixtures/results/Trumbowyg-1.1.7", destination
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
suvii-0.1.0 test/acceptance_test.rb