Remove unreliable specs

This commit is contained in:
Sijawusz Pur Rahnama 2021-01-01 23:53:55 +01:00
parent 57f5746d6e
commit 45b9cefe73
2 changed files with 6 additions and 16 deletions

View file

@ -5,12 +5,6 @@ describe Backtracer::Backtrace::Parser do
it "handles `caller` as an input" do it "handles `caller` as an input" do
with_backtrace(caller) do |backtrace| with_backtrace(caller) do |backtrace|
backtrace.frames.should_not be_empty 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 end
@ -20,12 +14,6 @@ describe Backtracer::Backtrace::Parser do
rescue ex rescue ex
with_backtrace(ex.backtrace) do |backtrace| with_backtrace(ex.backtrace) do |backtrace|
backtrace.frames.should_not be_empty 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 end
end end

View file

@ -14,11 +14,13 @@ describe Backtracer::Backtrace do
end end
end end
it "#to_s" do {% unless flag?(:release) || !flag?(:debug) %}
with_backtrace(caller) do |backtrace| it "#to_s" do
backtrace.to_s.should match(/backtrace_spec.cr/) with_backtrace(caller) do |backtrace|
backtrace.to_s.should match(/backtrace_spec.cr/)
end
end end
end {% end %}
it "#==" do it "#==" do
with_backtrace(caller) do |backtrace| with_backtrace(caller) do |backtrace|