Sha256: dbbb52c927f7dab3704299c3d154c21caf4d01d5e7c059a0d200b9aa54a8ccfa
Contents?: true
Size: 266 Bytes
Versions: 8
Compression:
Stored size: 266 Bytes
Contents
module TestHelpers extend ActiveSupport::Concern included do def mock_file_content(expected_path, content_lines) allow(File).to receive(:readlines).with( File.join(Rails.root, expected_path) ).and_return(content_lines) end end end
Version data entries
8 entries across 8 versions & 1 rubygems