Sha256: c340216540b1d1e4555c19c20eef902b02cdfe78b509161576c3d11763414e17
Contents?: true
Size: 278 Bytes
Versions: 13
Compression:
Stored size: 278 Bytes
Contents
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
Version data entries
13 entries across 13 versions & 1 rubygems