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
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

View File

@ -14,11 +14,13 @@ describe Backtracer::Backtrace do
end
end
it "#to_s" do
with_backtrace(caller) do |backtrace|
backtrace.to_s.should match(/backtrace_spec.cr/)
{% 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
{% end %}
it "#==" do
with_backtrace(caller) do |backtrace|