From 53d040f5cae280285148a1c86c599f1720ce4605 Mon Sep 17 00:00:00 2001 From: Natan Nobre Chaves Date: Tue, 17 Sep 2024 11:00:22 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Conserta=20duplica=C3=A7=C3=A3o=20na=20e?= =?UTF-8?q?xecu=C3=A7=C3=A3o=20de=20todos=20os=20testes=20(#63)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: conserta execução dos testes * fix: conserta testes na CI * fix: conserta duplicação na execução dos testes --- bin/test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/test b/bin/test index dd151859..25ebfa38 100755 --- a/bin/test +++ b/bin/test @@ -10,7 +10,10 @@ end FileUtils.chdir APP_ROOT do puts "\n== Running RSpec ==" - if ARGV.first&.include?("--auto") + if ARGV.empty? + puts "bundle exec rspec --require rails_helper" + system "bundle exec rspec --require rails_helper" + elsif ARGV.first&.include?("--auto") unless system("gem list retest -i --silent") puts "Installing retest..." system("gem install retest")