Sha256: b152e6710f9ebadb542464768e303a8ae301e35c38e1c6790ce532138f2dfa26
Contents?: true
Size: 742 Bytes
Versions: 2
Compression:
Stored size: 742 Bytes
Contents
Feature: Inspect a call chain Call chains (aka "train wrecks") can be a bother to debug. Kernel#tapq prints a value in a call chain and then continues the chain. Scenario: Without source position Given a file with: """ require "cute_print" puts ["1", "2"].map(&:to_i).tapq.inject(:+) """ Then stdout should be """ 3 """ And stderr should be """ [1, 2] """ Scenario: With source position Given a file named "example.rb" with: """ require "cute_print" puts ["1", "2"].map(&:to_i).tapql.inject(:+) """ Then stdout should be """ 3 """ And stderr should be """ example.rb:2: [1, 2] """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cute_print-0.2.0 | features/call_chain.feature |
cute_print-0.1.0 | features/inspect_call_chain.feature |