Sha256: d199cafcdd2669316b7aa18d4e6c0eeb70a14713db3417d6a24df0c4f4f52d45

Contents?: true

Size: 756 Bytes

Versions: 2

Compression:

Stored size: 756 Bytes

Contents

# Copyright (c) 2020 Jean-Sebastien Gelinas, see LICENSE.txt
# frozen_string_literal: true

Then(/^generated file should be the same as data result "([^"]*)"/) do |data_path_name|
  expected_output_path = test_result_path(data_path_name)

  # Try two paths: normal output, and hacked aruba tmp one
  output_path = @output_path
  aruba_output_path = "#{::Configuration.instance.working_directory}/#{@output_path}"
  output_path = aruba_output_path unless ::File.exist?(output_path)

  expect(::File.exist?(expected_output_path)).to be true
  expect(::File.exist?(output_path)).to be true

  expected_signature = image_signature(expected_output_path)
  output_signature = image_signature(output_path)

  expect(expected_signature).to eq output_signature
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tileset_tooling-0.1.0 features/step_definitions/file_steps.rb
tileset_tooling-0.0.2 features/step_definitions/file_steps.rb