Skip to content

Commit

Permalink
Merge fac0339 into ed40b1d
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Feb 10, 2021
2 parents ed40b1d + fac0339 commit 2e362f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec/one_liner_expectation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
EOS
else
replace_with <<~EOS
it '#{old_matcher.to_s.sub('have', 'has').gsub('_', ' ')} #{times} #{items_name}' do
it '#{old_matcher.to_s.sub('have', 'has').tr('_', ' ')} #{times} #{items_name}' do
expect(subject.#{items_name}.size).#{new_message} #{new_matcher} #{times}
end
EOS
Expand Down

0 comments on commit 2e362f2

Please sign in to comment.