Skip to content

Commit

Permalink
add guard against MiniTest
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Oct 10, 2023
1 parent b5bf82c commit 45aa44c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/maxitest_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@
run_cmd("ruby spec/cases/helpers.rb")
end

it "does not use old MiniTest constant" do
Dir["lib/**/*.rb"].each do |p|
File.read(p).should_not include "MiniTest"
end
end

describe "before/after/around" do
it "works" do
out = run_cmd("ruby spec/cases/hook_all.rb")
Expand Down

0 comments on commit 45aa44c

Please sign in to comment.