Class: RSpec::Matchers::BuiltIn::YieldWithArgs

Inherits:
Object
  • Object
show all
Defined in:
opal/opal/rspec/fixes/rspec/matchers/built_in/yield.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



3
4
5
6
7
8
9
# File 'opal/opal/rspec/fixes/rspec/matchers/built_in/yield.rb', line 3

def description
  desc = "yield with args"
  # string mutation
  # desc << "(#{expected_arg_description})" unless @expected.empty?
  desc += "(#{expected_arg_description})" unless @expected.empty?
  desc
end