Sha256: b79510fd97da4a5902504566f62e700893d58a13d409548fefc7f00779e581ea
Contents?: true
Size: 393 Bytes
Versions: 5
Compression:
Stored size: 393 Bytes
Contents
require 'find' require 'fakefs/spec_helpers' RSpec.configure do |c| c.mock_with(:rspec) c.include(FakeFS::SpecHelpers, :fakefs => true) end if RUBY_VERSION >= '2.1' describe 'Find.find', :fakefs => true do it 'does not give an ArgumentError' do FileUtils.mkdir_p('/tmp/foo') found = Find.find('/tmp').to_a expect(found).to eq(%w(/tmp /tmp/foo)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems