Skip to content

Commit

Permalink
Also show kwargs usse with log in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-psarga committed Apr 27, 2020
1 parent f609fba commit 0db705c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/cucumber/glue/proto_world_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,16 @@ module Glue

define_steps do
When('{word} {word} {word}') do |subject, verb, complement|
log "subject: #{subject}", "verb: #{verb}", "complement: #{complement}"
log "subject: #{subject}", "verb: #{verb}", "complement: #{complement}", subject: subject, verb: verb, complement: complement
end
end

it 'logs each parameter independently' do
expect(@out.string).to include [
' subject: monkey',
' verb: eats',
' complement: banana'
' complement: banana',
' {:subject=>"monkey", :verb=>"eats", :complement=>"banana"}'
].join("\n")
end
end
Expand Down

0 comments on commit 0db705c

Please sign in to comment.