Sha256: 3d6faddd2300e26da3dccb5a4f9dbb9b7c5ccb096852ebf876d8a1175536c0e5
Contents?: true
Size: 717 Bytes
Versions: 2
Compression:
Stored size: 717 Bytes
Contents
require 'yaml' Given(/^the (\w+) project$/) do |sdk| FileUtils.mkdir_p "#{current_dir}/sdks" FileUtils.cp_r "samples/sdks/#{sdk}", "#{current_dir}/sdks" end Given(/^the (\w+) omnitest config$/) do |config| FileUtils.cp_r "features/fixtures/configs/omnitest_#{config}.yaml", "#{current_dir}/omnitest.yaml" end Given(/^the (\w+) skeptic config$/) do |config| FileUtils.cp_r "features/fixtures/configs/skeptic_#{config}.yaml", "#{current_dir}/skeptic.yaml" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omnitest-0.2.2 | features/step_definitions/sdk_steps.rb |
omnitest-0.2.1 | features/step_definitions/sdk_steps.rb |