Sha256: f14fb2573e6eeef1475886105c53260dfc816a9e8bf3e1d647feb879ea68442b
Contents?: true
Size: 294 Bytes
Versions: 2
Compression:
Stored size: 294 Bytes
Contents
# frozen_string_literal: true module SpecUtils def in_dir(file, path = '') return unless block_given? setup_env!(path, file) initial_path = Dir.getwd Dir.chdir "#{RSPEC_ROOT}/dummy" yield Dir.chdir initial_path clear_env!(path) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
messages_dictionary-2.1.0 | spec/support/spec_utils.rb |
messages_dictionary-2.0.0 | spec/support/spec_utils.rb |