Sha256: 13370974812c64daa9244e3c2b9ae1d59cf83fdffb1fd073c752519faed61ac2

Contents?: true

Size: 318 Bytes

Versions: 11

Compression:

Stored size: 318 Bytes

Contents

Then(/^the junit output file "(.*?)" should contain:$/) do |actual_file, text|
  actual = IO.read(current_dir + '/' + actual_file)
  actual = replace_junit_time(actual)
  expect(actual).to eq text.to_s
end

module JUnitHelper
  def replace_junit_time(s)
    s.gsub(/\d+\.\d\d+/m, '0.05')
  end
end

World(JUnitHelper)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cucumber-2.0.0 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.rc.5 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.rc.4 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.rc.3 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.rc.2 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.rc.1 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.beta.5 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.beta.4 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.beta.3 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.beta.2 features/lib/step_definitions/junit_steps.rb
cucumber-2.0.0.beta.1 features/lib/step_definitions/junit_steps.rb