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
3 4 5 6 7 8 9 10 11 12 |
# File 'opal/opal/rspec/fixes/rspec/mocks/error_generator.rb', line 3 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 |