Sha256: a8b967cd6281e18fadbf16f166edc8d3897c41a1eb2f170033548a8cb2c68bdf
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require "fileutils" module FileHelpers def setup_fixtures(*pathnames) original_schema_root = JsonMatchers.schema_root JsonMatchers.schema_root = File.join(*pathnames) FileUtils.mkdir_p(JsonMatchers.schema_root) original_schema_root end def teardown_fixtures(original_schema_root) FileUtils.rm_rf(JsonMatchers.schema_root) JsonMatchers.schema_root = original_schema_root end def ensure_fixtures(*pathnames) original_schema_root = setup_fixtures(*pathnames) yield teardown_fixtures(original_schema_root) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
json_matchers-0.11.1 | spec/support/file_helpers.rb |
json_matchers-0.11.0 | spec/support/file_helpers.rb |
json_matchers-0.10.0 | spec/support/file_helpers.rb |