From fec988c047bbdd2ef2ed1e8ba3a0c8642eac73f2 Mon Sep 17 00:00:00 2001 From: Andy Pfister Date: Tue, 2 Jan 2024 13:48:47 +0100 Subject: [PATCH] Expect `autocomplete=off` in Rails versions newer than 6.0 The original commit 6d0dfdbf0cd10cb4664bff08eace3b9b1aa6c9cc even mentiones this, but somehow the comparison was including 6.0. --- spec/web/authorize_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/web/authorize_spec.rb b/spec/web/authorize_spec.rb index 503ff7f..90a2b23 100644 --- a/spec/web/authorize_spec.rb +++ b/spec/web/authorize_spec.rb @@ -84,7 +84,7 @@ end it 'should generate valid form field string' do - if Gem.loaded_specs['activesupport'].version >= Gem::Version.create('6.0') + if Gem.loaded_specs['activesupport'].version >= Gem::Version.create('6.1') expected_output = '' else expected_output = ''