Sha256: 2497c3a6edb77bdc3993014d2919fc52c5a60a178969fef42ec03bee9b8d142a
Contents?: true
Size: 394 Bytes
Versions: 3
Compression:
Stored size: 394 Bytes
Contents
# frozen_string_literal: true module FixturesHelper def load_diff(file_path, fixture_name) raw_diff = load_fixture(fixture_name + '.diff') return unless raw_diff double( patch: raw_diff, path: file_path ) end def load_fixture(file_name) file = "#{File.dirname(__FILE__)}/fixtures/#{file_name}" return File.read(file) if File.exist?(file) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danger-wcc-0.0.4 | spec/fixtures_helper.rb |
danger-wcc-0.0.3 | spec/fixtures_helper.rb |
danger-wcc-0.0.2 | spec/fixtures_helper.rb |