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

Version Path
curate-0.6.6 spec/support/curate_fixture_file_upload.rb
curate-0.6.5 spec/support/curate_fixture_file_upload.rb
curate-0.6.4 spec/support/curate_fixture_file_upload.rb
curate-0.6.3 spec/support/curate_fixture_file_upload.rb
curate-0.6.1 spec/support/curate_fixture_file_upload.rb
curate-0.6.0 spec/support/curate_fixture_file_upload.rb
curate-0.5.6 spec/support/curate_fixture_file_upload.rb
curate-0.5.5 spec/support/curate_fixture_file_upload.rb
curate-0.5.4 spec/support/curate_fixture_file_upload.rb
curate-0.5.2 spec/support/curate_fixture_file_upload.rb
curate-0.5.1 spec/support/curate_fixture_file_upload.rb
curate-0.5.0 spec/support/curate_fixture_file_upload.rb
curate-0.4.2 spec/support/curate_fixture_file_upload.rb