Class: RSpec::Mocks::ErrorGenerator
- Inherits:
-
Object
- Object
- RSpec::Mocks::ErrorGenerator
- Defined in:
- opal/opal/rspec/fixes/rspec/mocks/error_generator.rb
Instance Method Summary collapse
Instance Method Details
#actual_method_call_args_description(count, args) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'opal/opal/rspec/fixes/rspec/mocks/error_generator.rb', line 29 def actual_method_call_args_description(count, args) method_call_args_description(args) || if count > 0 && args.length > 0 # \A and \z not supported on Opal # " with arguments: #{args.inspect.gsub(/\A\[(.+)\]\z/, '(\1)')}" " with arguments: #{args.inspect.gsub(/^\[(.+)\]$/, '(\1)')}" else "" end end |