Sha256: 25e9293d45536d77cf49d1b75e17735adc44ad3b19cdbce317abe5d9f5c2e5e9

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

require 'yaml'

Given(/^the (\w+) SDK$/) do |sdk|
  FileUtils.mkdir_p "#{current_dir}/sdks"
  FileUtils.cp_r "samples/sdks/#{sdk}", "#{current_dir}/sdks"
end

Given(/^the (\w+) polytrix config$/) do |config|
  FileUtils.cp_r "features/fixtures/configs/#{config}.yml", "#{current_dir}/polytrix.yml"
end

Given(/^the standard rspec setup$/) do
  FileUtils.cp_r 'features/fixtures/spec/', "#{current_dir}/"
end

Then(/^the file "(.*?)" should contain yaml matching:$/) do |file, content|
  in_current_dir do
    actual_content = YAML.load(File.read(file))
    expected_content = YAML.load(content)
    expect(actual_content).to eq(expected_content)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
polytrix-0.1.2 features/step_definitions/sdk_steps.rb
polytrix-0.1.1 features/step_definitions/sdk_steps.rb
polytrix-0.1.0 features/step_definitions/sdk_steps.rb