Sha256: 2e19f29f8b80660d6b4aea37e86cbc8d82b9504e3d2fe28f8b0aa42df99a7d2d
Contents?: true
Size: 716 Bytes
Versions: 2
Compression:
Stored size: 716 Bytes
Contents
#!/usr/local/bin/ruby if $0 == __FILE__ Dir.chdir File.dirname(__FILE__)+'/../' $:.unshift File.expand_path('../lib/') end require 'rio' require 'test/unit' require 'test/unit/testsuite' require 'extensions/symbol' require 'tc/testcase' require 'tmpdir' class TC_selnosel < Test::RIO::TestCase @@once = false def self.once @@once = true rio('dir').delete!.mkpath.chdir { rio('f1').touch rio('f2').touch rio('g1').touch rio('g2').touch } end def setup super self.class.once unless @@once @dir = rio('dir') end def test_selnosel ario = @dir.files('f*').skipfiles(/1/,:symlink?) ans = ario.to_a assert_equal(%w[dir/f2],smap(ans)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rio-0.3.6 | test/tc/selnosel.rb |
rio-0.3.4 | test/tc/selnosel.rb |