Sha256: 99abbda5d95a87a014fcd6002d750a7a4b2fd234c1db16485b9b9eb1fac8d6fa
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 KB
Contents
# Copyright (c) 2020 Jean-Sebastien Gelinas, see LICENSE.txt # frozen_string_literal: true When(/^I insert bleed to test data "([^"]*)"$/) do |data_name| image_path = test_data_path(data_name) file_name = ::File.basename(image_path, '.*') extension = ::File.extname(image_path) directory = ::File.dirname(image_path) @output_path = "#{directory}/#{file_name}_result#{extension}" step %(I run `#{::Configuration.instance.app_name} bleed insert #{image_path}` interactively) end When(/^I insert bleed to test data "([^"]*)" and output to "([^"]*)"/) do |data_name, output_path| @output_path = output_path image_path = test_data_path(data_name) step %(I run `#{::Configuration.instance.app_name} bleed insert --output #{@output_path} #{image_path}` interactively) end When(/^I insert bleed to test data "([^"]*)" and skip specs loading/) do |data_name| image_path = test_data_path(data_name) file_name = ::File.basename(image_path, '.*') extension = ::File.extname(image_path) directory = ::File.dirname(image_path) @output_path = "#{directory}/#{file_name}_result#{extension}" step %(I run `#{::Configuration.instance.app_name} bleed insert --skip-specs #{image_path}` interactively) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tileset_tooling-0.1.0 | features/step_definitions/insert_bleed_steps.rb |
tileset_tooling-0.0.2 | features/step_definitions/insert_bleed_steps.rb |