Sha256: c033f30a13925cb573079a4f2ad6ea923531f16943c5e76c5f4d3be850a5df6c
Contents?: true
Size: 512 Bytes
Versions: 8
Compression:
Stored size: 512 Bytes
Contents
require "spec_helper" describe Apipie::FileHandler do describe "match?" do let(:file_handler) { Apipie::FileHandler.new File.dirname(__FILE__) } it { expect(file_handler.match? 'file_handler_spec.rb').to be_truthy } it { expect(file_handler.match? 'foo.bar').to be_falsy } context 'path contains null bytes' do let(:path) { "foo%00.bar" } it { expect(file_handler.match? path).to be_falsy } it { expect { file_handler.match? path }.to_not raise_error } end end end
Version data entries
8 entries across 8 versions & 2 rubygems