test/test_sources.rb in pdd-0.20.8 vs test/test_sources.rb in pdd-0.21.0
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2014-2021 Yegor Bugayenko
+# Copyright (c) 2014-2022 Yegor Bugayenko
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the 'Software'), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -24,21 +24,20 @@
require_relative '../test/test__helper'
require_relative '../lib/pdd/sources'
# Sources test.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
-# Copyright:: Copyright (c) 2014-2021 Yegor Bugayenko
+# Copyright:: Copyright (c) 2014-2022 Yegor Bugayenko
# License:: MIT
class TestSources < Minitest::Test
def test_iterator
in_temp(['a.txt', 'b/c.txt']) do |dir|
list = PDD::Sources.new(dir).fetch
assert_equal 2, list.size
end
end
def test_ignores_binary_files
- skip if Gem.win_platform?
in_temp([]) do |dir|
[
'README.md',
'.git/index',
'test_assets/elegant-objects.png',