{"id":17109064,"url":"https://github.com/alexanderadam/spec2.cr-issue-62","last_synced_at":"2025-03-23T21:22:39.909Z","repository":{"id":78583737,"uuid":"121762096","full_name":"alexanderadam/spec2.cr-issue-62","owner":"alexanderadam","description":"This is just a small example to demonstrate Crystal issue 2785","archived":false,"fork":false,"pushed_at":"2018-02-16T15:05:18.000Z","size":204,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-29T04:43:15.539Z","etag":null,"topics":["bug","crystal-lang","crystal-language","spec","testing"],"latest_commit_sha":null,"homepage":"https://github.com/crystal-lang/crystal/issues/2785#issuecomment-366265669","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexanderadam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-16T14:48:53.000Z","updated_at":"2020-03-04T07:51:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"29c0709b-a8ae-42bc-8ba2-cdf7c0a98b45","html_url":"https://github.com/alexanderadam/spec2.cr-issue-62","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderadam%2Fspec2.cr-issue-62","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderadam%2Fspec2.cr-issue-62/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderadam%2Fspec2.cr-issue-62/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderadam%2Fspec2.cr-issue-62/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderadam","download_url":"https://codeload.github.com/alexanderadam/spec2.cr-issue-62/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245170079,"owners_count":20572003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bug","crystal-lang","crystal-language","spec","testing"],"created_at":"2024-10-14T16:21:58.217Z","updated_at":"2025-03-23T21:22:39.873Z","avatar_url":"https://github.com/alexanderadam.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# missing_callstack_lines\n\nThis is just a small example to demonstrate [spec2.cr issue 62](https://github.com/waterlink/spec2.cr/issues/62).\n\nFailed expectations won't show the proper line where the expectation actually failed.\nIn fact: everything but this line shown.\n\n## Reproducing the issue\n\njust call and compare\n\n```bash\n$ shards\n$ crystal spec spec/missing_callstack_lines_spec.cr:4\n$ crystal spec spec/missing_callstack_lines_spec.cr:10\n```\n\nThis is the produced output:\n\n![Terminal output](example_output.png)\n\n\n```\n$ crystal spec spec/missing_callstack_lines_spec.cr:4\nF\nFailures:\n  1) MissingCallstackLines shows a proper stacktrace\n     Failure/Error: false.should eq(true)\n       Expected: true\n            got: false\n     # spec/missing_callstack_lines_spec.cr:6\nFinished in 53 microseconds\n1 examples, 1 failures, 0 errors, 0 pending\nFailed examples:\ncrystal spec spec/missing_callstack_lines_spec.cr:5 # MissingCallstackLines shows a proper stacktrace\n\n$ crystal spec spec/missing_callstack_lines_spec.cr:10\nFinished in 5 microseconds\n0 examples, 0 failures, 0 errors, 0 pending\nF\nIn example: MissingCallstackLines does not show a proper stacktrace\n        Failure: Expected to be equal:\n                Expected:        true\n                Actual:          false\n        lib/spec2/src/expectation.cr:19:7 in 'to'\n        spec/missing_callstack_lines_spec.cr:10:1 in 'run'\n        lib/spec2/src/runners/default.cr:27:13 in 'run_context'\n        lib/spec2/src/runners/default.cr:43:11 in 'run_context'\n        lib/spec2/src/high_runner.cr:66:7 in 'run'\n        lib/spec2/src/spec2.cr:57:3 in 'run'\n        lib/spec2/src/spec2.cr:0:1 in '~procProc(Int32, Nil)'\n        /usr/share/crystal/src/kernel.cr:255:3 in 'run'\n        /usr/share/crystal/src/crystal/main.cr:60:5 in 'main'\n        /usr/share/crystal/src/crystal/main.cr:135:3 in 'main'\n        __libc_start_main\n        _start\n        ???\nFinished in 90.79 milliseconds\nExamples: 1, failures: 1, pending: 0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderadam%2Fspec2.cr-issue-62","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderadam%2Fspec2.cr-issue-62","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderadam%2Fspec2.cr-issue-62/lists"}