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

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