Sha256: 928d04138383d86a02792c4a0fc532afc588366991036f73747a15c0b810e54a
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
When /^I run reek (.*)$/ do |args| reek(args) end When /^I pass "([^\"]*)" to reek *(.*)$/ do |stdin, args| reek_with_pipe(stdin, args) end When /^I run rake (\w*) with:$/ do |name, task_def| rake(name, task_def) end Then /^stdout equals "([^\"]*)"$/ do |report| @last_stdout.should == report end Then /^it succeeds$/ do @last_exit_status.should == Reek::EXIT_STATUS[:success] end Then /^the exit status indicates an error$/ do @last_exit_status.should == Reek::EXIT_STATUS[:error] end Then /^the exit status indicates smells$/ do @last_exit_status.should == Reek::EXIT_STATUS[:smells] 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reek-1.2.3 | features/step_definitions/reek_steps.rb |