Sha256: 8c91eb5bcd17f6ba8cacfa8d6b6875ee0dcc6c0c270b16cc5267a2fa33516b32

Contents?: true

Size: 678 Bytes

Versions: 5

Compression:

Stored size: 678 Bytes

Contents

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

When /^I pass "([^\"]*)" to reek$/ do |stdin|
  run_with_pipe stdin
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

5 entries across 5 versions & 1 rubygems

Version Path
kevinrutherford-reek-1.1.3.5 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.6 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.7 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.8 features/step_definitions/reek_steps.rb
kevinrutherford-reek-1.1.3.9 features/step_definitions/reek_steps.rb