Sha256: d5046dff41954ee2c3c3e958b51cf4b38e9bf700ca3d80374439122a5435a741

Contents?: true

Size: 514 Bytes

Versions: 61

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'eac_fs/contexts'
require 'eac_fs/storage_tree'
require 'eac_ruby_utils/fs/temp'

module EacFs
  module Rspec
    module Setup
      require_sub __FILE__

      # @return [self]
      def stub_eac_fs_contexts
        ::EacFs::Contexts::TYPES.each do |type|
          ::EacFs::Contexts.send(type).push(
            ::EacFs::StorageTree.new(::EacRubyUtils::Fs::Temp.directory)
          )
        end

        self
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
eac_fs-0.18.1 lib/eac_fs/rspec/setup.rb
eac_fs-0.18.0 lib/eac_fs/rspec/setup.rb
eac_fs-0.17.0 lib/eac_fs/rspec/setup.rb
eac_tools-0.76.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.75.2 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.75.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.75.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.74.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.74.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.73.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.72.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.70.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.70.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.69.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.69.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.68.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.67.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.67.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.66.0 sub/eac_fs/lib/eac_fs/rspec/setup.rb
eac_tools-0.65.1 sub/eac_fs/lib/eac_fs/rspec/setup.rb