Skip to content

Commit 372635f

Browse files
committed
Implement Config.exclusions
1 parent f302b5a commit 372635f

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

lib/matrixeval/ruby/config.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def rest_vector_variants_matrix
4141
rest_vectors.map(&:variants)
4242
end
4343

44+
def exclusions
45+
YAML["exclude"]
46+
end
47+
4448
end
4549
end
4650
end

test/matrixeval/ruby/config_test.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ def setup
2121
{ "key" => "7.0" }
2222
]
2323
}
24-
}
24+
},
25+
"exclude" => [
26+
{ "ruby" => "3.0", "active_model" => "7.0" },
27+
{ "ruby" => "3.1", "active_model" => "6.1" }
28+
]
2529
})
2630
end
2731

@@ -70,4 +74,12 @@ def test_rest_vector_variants_matrix
7074
assert_equal "7.0", variants_matrix[0][1].key
7175
end
7276

77+
def test_exclusions
78+
exclusions = [
79+
{ "ruby" => "3.0", "active_model" => "7.0" },
80+
{ "ruby" => "3.1", "active_model" => "6.1" }
81+
]
82+
assert_equal exclusions, Matrixeval::Ruby::Config.exclusions
83+
end
84+
7385
end

0 commit comments

Comments
 (0)