Sha256: 2f7d953be5b18d2488b404763014e39c194d33e9f5c70b3e8c9393b963d3440e
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 Bytes
Contents
# frozen_string_literal: true require 'fileutils' module SpecFilesSetup def setup_env!(path, file) full_path = "#{RSPEC_ROOT}/dummy/#{path}" FileUtils.mkdir_p full_path f = File.new(File.join(full_path, file), 'w+') f.write("test: string\ninterpolated: Value is {{a}}") f.close end def clear_env!(path) FileUtils.remove_entry("#{RSPEC_ROOT}/dummy/#{path}") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
messages_dictionary-2.0.0 | spec/support/spec_files_setup.rb |