Sha256: 7be76d8d15dd51a350f378c5a717d6ec8a536bb086e70d3fdb11f394a05bf181
Contents?: true
Size: 310 Bytes
Versions: 13
Compression:
Stored size: 310 Bytes
Contents
module Features module CurateFixtureFileUpload def curate_fixture_file_upload(path, content_type = 'text/plain', binary = false) normalized_path = File.join(Curate::Engine.root.to_s, 'spec/fixtures', path) Rack::Test::UploadedFile.new(normalized_path, content_type, binary) end end end
Version data entries
13 entries across 13 versions & 1 rubygems