mirror of
https://gitea.invidious.io/iv-org/shard-backtracer.cr.git
synced 2024-08-15 00:53:13 +00:00
Remove unreliable specs
This commit is contained in:
parent
57f5746d6e
commit
45b9cefe73
2 changed files with 6 additions and 16 deletions
|
@ -5,12 +5,6 @@ describe Backtracer::Backtrace::Parser do
|
|||
it "handles `caller` as an input" do
|
||||
with_backtrace(caller) do |backtrace|
|
||||
backtrace.frames.should_not be_empty
|
||||
|
||||
backtrace.frames.first
|
||||
.tap(&.absolute_path.should eq(__FILE__))
|
||||
.tap(&.path.should eq("spec/backtracer/backtrace/parser_spec.cr"))
|
||||
|
||||
backtrace.frames.last.method.should eq("main")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -20,12 +14,6 @@ describe Backtracer::Backtrace::Parser do
|
|||
rescue ex
|
||||
with_backtrace(ex.backtrace) do |backtrace|
|
||||
backtrace.frames.should_not be_empty
|
||||
|
||||
backtrace.frames.first
|
||||
.tap(&.absolute_path.should eq(__FILE__))
|
||||
.tap(&.path.should eq("spec/backtracer/backtrace/parser_spec.cr"))
|
||||
|
||||
backtrace.frames.last.method.should eq("main")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,11 +14,13 @@ describe Backtracer::Backtrace do
|
|||
end
|
||||
end
|
||||
|
||||
{% unless flag?(:release) || !flag?(:debug) %}
|
||||
it "#to_s" do
|
||||
with_backtrace(caller) do |backtrace|
|
||||
backtrace.to_s.should match(/backtrace_spec.cr/)
|
||||
end
|
||||
end
|
||||
{% end %}
|
||||
|
||||
it "#==" do
|
||||
with_backtrace(caller) do |backtrace|
|
||||
|
|
Loading…
Reference in a new issue