Improve RSpec generated description (avoid should)
This commit is contained in:
parent
3a54d8c0b9
commit
3089462d97
8
spec/support/fix_rspec_matchers_generated_description.rb
Normal file
8
spec/support/fix_rspec_matchers_generated_description.rb
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
module RSpec
|
||||||
|
module Matchers
|
||||||
|
def self.generated_description
|
||||||
|
return nil if last_expectation_handler.nil?
|
||||||
|
"must #{last_description}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user