Sha256: 1860cad066c90fce4602791f7d940788cf2c97b0f72d4bcd0561ebaab7dbefc6
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
Before do allow_any_instance_of(Object) .to receive(:print_to_output) do |_receiver, output| @stored_output ||= '' @stored_output << output end end Then('I see output') do |string| expect(@stored_output).to eq string end Then('I clear output') do @stored_output = '' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rung-0.1 | features/step_definitions/output.rb |