Sha256: 1c6c247fc7a78ade229bb61f1ff657a58d3ec57684bad3dc1139da4438f386c6
Contents?: true
Size: 503 Bytes
Versions: 66
Compression:
Stored size: 503 Bytes
Contents
module Features module FixtureFileUpload # Can't just call this fixture_file_upload due to name conflicts. def curation_concerns_fixture_file_upload(path, content_type = 'text/plain', binary = false) Rack::Test::UploadedFile.new(fixture_file_path(path), content_type, binary) end def fixture_file(path) File.open(fixture_file_path(path)) end def fixture_file_path(path) File.join(CurationConcerns::Engine.root.to_s, 'spec/fixtures', path) end end end
Version data entries
66 entries across 66 versions & 1 rubygems