test/glob_test.rb in glob-0.4.0 vs test/glob_test.rb in glob-0.4.1
- old
+ new
@@ -1,9 +1,20 @@
# frozen_string_literal: true
require "test_helper"
class GlobTest < Minitest::Test
+ test "with partial matching" do
+ glob = Glob.new(
+ en: {editor: "editor", edit: "edit"},
+ pt: {editor: "editor", edit: "edit"}
+ )
+
+ glob << "*.edit"
+
+ assert_equal ["en.edit", "pt.edit"], glob.paths
+ end
+
test "with rejecting filter" do
glob = Glob.new(
en: {
messages: {
hello: "Hello!",