Sha256: 9fbed8c1fe2d969d4ace608cebdc32532074d27daaeb231c811795fff5dd99d1
Contents?: true
Size: 380 Bytes
Versions: 4
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module SpecAddons def expect_file_exist(path, file) file_path = File.join path, file expect(File.file?(file_path)).to be true end def allow_project_id(obj, value) allow(obj).to receive(:project_id).and_return(value) return unless block_given? yield expect(obj).to have_received(:project_id) end end
Version data entries
4 entries across 4 versions & 1 rubygems