Sha256: 52161ad79f5444aaecf8b6b1366dc4417b4315a5ff15e67ba847b88439605021

Contents?: true

Size: 697 Bytes

Versions: 11

Compression:

Stored size: 697 Bytes

Contents

When /^I run reek (.*)$/ do |args|
  run args
end

When /^I pass "([^\"]*)" to reek *(.*)$/ do |stdin, args|
  run_with_pipe(stdin, args)
end

When /^I run rake reek$/ do
  rake
end

Then /^stdout equals "([^\"]*)"$/ do |report|
  @last_stdout.should == report
end

Then /^it succeeds$/ do
  @last_exit_status.should == 0
end

Then /^it fails with exit status (\d+)$/ do |status|
  @last_exit_status.should == status.to_i
end

Then /^it reports:$/ do |report|
  @last_stdout.should == report
end

Then /^it reports the error ['"](.*)['"]$/ do |string|
  @last_stderr.chomp.should == string
end

Then /^it reports the current version$/ do
  @last_stdout.chomp.should == "reek #{Reek::VERSION}"
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
kevinrutherford-reek-1.1.3.10 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.11 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.12 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.13 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.14 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.15 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.16 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.2.0 features/step_definitions/reek_steps.rb
reek-1.2.2 features/step_definitions/reek_steps.rb
reek-1.2.1 features/step_definitions/reek_steps.rb
reek-1.2.0 features/step_definitions/reek_steps.rb