File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def match_exclusion?(exclusion)
6161 variants . all? do |variant |
6262 vector_key = variant . vector . key
6363 if exclusion . key? ( vector_key )
64- exclusion [ vector_key ] == variant . key
64+ exclusion [ vector_key ] . to_s == variant . key
6565 else
6666 true
6767 end
Original file line number Diff line number Diff line change @@ -75,10 +75,10 @@ def test_variants
7575 end
7676
7777 def test_match_exclusion
78- assert @context . match_exclusion? ( { "ruby" => " 3.0" , "rails" => "6.1" } )
79- assert @context . match_exclusion? ( { "ruby" => "3.0" , "rails" => " 6.1" , "sidekiq" => "5.0" } )
78+ assert @context . match_exclusion? ( { "ruby" => 3.0 , "rails" => "6.1" } )
79+ assert @context . match_exclusion? ( { "ruby" => "3.0" , "rails" => 6.1 , "sidekiq" => "5.0" } )
8080 assert @context . match_exclusion? ( { "rails" => "6.1" , "sidekiq" => "5.0" } )
81- refute @context . match_exclusion? ( { "ruby" => " 2.7" , "rails" => "6.1" } )
81+ refute @context . match_exclusion? ( { "ruby" => 2.7 , "rails" => "6.1" } )
8282 refute @context . match_exclusion? ( { "sidekiq" => "6.0" } )
8383 refute @context . match_exclusion? ( { } )
8484 end
You can’t perform that action at this time.
0 commit comments