Sha256: d281510a28aa1b607b0ca4f64d5455d96bcb29914588224bc11f0be957c31108
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
Given /the argument (.*)/ do |arg| @arguments ||= [] @arguments << arg end When /I run dispatch/ do dispatch = Amp::Dispatch::Runner.new(@arguments || []) @result = swizzling_stdout { dispatch.run! } end Then /I should see "(.*)"/ do |arg| @result.should =~ /#{arg}/ end def swizzling_stdout new_stdout = StringIO.new $stdout, old_stdout = new_stdout, $stdout yield new_stdout.string ensure $stdout = old_stdout new_stdout.string end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amp-front-0.2.0 | features/step_definitions/amp-front_steps.rb |
amp-front-0.1.0 | features/step_definitions/amp-front_steps.rb |