Sha256: 6a93073d44490411a6bc77832371fad8157c9a302291dbbd18353240f52fadfe
Contents?: true
Size: 843 Bytes
Versions: 1
Compression:
Stored size: 843 Bytes
Contents
# frozen_string_literal: true require 'rom/files/dataset' require 'shared/rom/files/media_dataset' RSpec.describe ROM::Files::Dataset, '#recursive' do include_context 'media dataset' context '()' do subject { dataset.recursive } its(:search_recursive) { is_expected.to eql true } its(:search_patterns) { is_expected.to eql [Pathname('**/*')] } end context 'with custom select' do subject { dataset.select('*.txt').recursive } its(:search_recursive) { is_expected.to eql true } its(:search_patterns) { is_expected.to eql [Pathname('**/*.txt')] } end context 'with multiple select' do subject { dataset.select('*.txt', '*.md').recursive } its(:search_recursive) { is_expected.to eql true } its(:search_patterns) { is_expected.to eql [Pathname('**/*.txt'), Pathname('**/*.md')] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rom-files-0.2.0 | spec/lib/rom/files/dataset/recursive_spec.rb |