test/test_pdd.rb in pdd-0.20.6 vs test/test_pdd.rb in pdd-0.20.7
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright (c) 2014-2020 Yegor Bugayenko
+# Copyright (c) 2014-2021 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,11 +24,11 @@
require 'slop'
require_relative '../lib/pdd'
# PDD main module test.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
-# Copyright:: Copyright (c) 2014-2020 Yegor Bugayenko
+# Copyright:: Copyright (c) 2014-2021 Yegor Bugayenko
# License:: MIT
class TestPDD < Minitest::Test
def test_basic
Dir.mktmpdir 'test' do |dir|
opts = opts(['-q', '-s', dir, '-e', '**/*.png', '-r', 'max-estimate:15'])
@@ -93,9 +93,10 @@
def opts(args)
Slop.parse args do |o|
o.bool '-v', '--verbose'
o.bool '-q', '--quiet'
+ o.bool '--skip-errors'
o.string '-s', '--source'
o.array '-e', '--exclude'
o.array '-r', '--rule'
end
end