Skip to content

Commit 30c56c0

Browse files
committed
Fix up bad copy and paste
1 parent 87d439f commit 30c56c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

spec/cucumber/glue/step_definition_spec.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,14 @@ def step_match(text)
199199
it 'calls `to_s` if the message is not a String' do
200200
expect(user_interface).to receive(:attach).with('["Not", 1, "string"]', 'text/x.cucumber.log+plain', nil)
201201

202-
dsl.Given('Loud') { log 'wasup' }
202+
dsl.Given('Loud') { log ['Not', 1, 'string'] }
203203
run_step 'Loud'
204204
end
205205
end
206206

207207
it 'recognizes $arg style captures' do
208-
arg_value = 'up'
209-
dsl.Given 'capture this: {word}' do |arg|
210-
expect(arg).to eq arg_value
208+
dsl.Given('capture this: {word}') do |arg|
209+
expect(arg).to eq('up')
211210
end
212211
run_step 'capture this: up'
213212
end

0 commit comments

Comments
 (0)