Skip to content

Commit 21fea7a

Browse files
committed
Fix deprecator spec
1 parent 0857499 commit 21fea7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/cucumber/deprecate_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module Cucumber
77
it 'outputs a message to $stderr' do
88
allow($stderr).to receive(:puts)
99

10-
Cucumber.deprecate('Use some_method instead', 'someMethod', '1.0.0')
10+
Cucumber.deprecate('Use #some_other_method instead', '#some_method', '1.0.0')
1111
expect($stderr).to have_received(:puts).with(
1212
a_string_including(
13-
'WARNING: #someMethod is deprecated and will be removed after version 1.0.0. Use some_method instead.'
13+
'WARNING: #some_method is deprecated and will be removed after version 1.0.0. Use #some_other_method instead.'
1414
)
1515
)
1616
end

0 commit comments

Comments
 (0)