Sha256: 46862d6cf50ec712e5eb2699669912afa0a7a19881660654f0d51ee43c267e5c

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

Then /^it should pass$/ do
  assert_success true
end

Then /^it should fail$/ do
  assert_success false
end

Given /^the configuration:$/ do |string|
  write_file "scripted.rb", string
end

Then /^it should have taken about (\d+) seconds$/ do |seconds|
  last_line = all_output.split("\n").reject { |line| line =~ /^\s*$/ }.last.strip
  total = /Total runtime: (\d+\.\d+)s/.match(last_line)
  expect(total[1].to_f).to be_within(0.5).of(seconds.to_f)
end

When /^I run scripted$/ do
  run_simple "scripted", false
end

Then /^the file "(.*?)" should contain:$/ do |file, partial_content|
  check_file_content(file, partial_content, true)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scripted-0.0.1 features/steps/scripted_steps.rb