Sha256: a0c6d391d4153cfd62133565e7f3c84ac80b10df6f9b7932f9cbe16c8270e371

Contents?: true

Size: 488 Bytes

Versions: 4

Compression:

Stored size: 488 Bytes

Contents

describe PlayTime::Apk do
  describe '#load' do
    let(:path) { 'path/to/apk' }

    subject { PlayTime::Apk.load }

    before do
      allow(PlayTime.configuration).to receive(:apk_path).and_return(path)
    end

    it 'returns a Google::APIClient::UploadIO with the path and MIME_TYPE' do
      allow(Google::APIClient::UploadIO).to receive(:new)

      subject

      expect(Google::APIClient::UploadIO).to have_received(:new).with(path, PlayTime::Apk::MIME_TYPE)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
play_time-0.1.0 spec/lib/apk_spec.rb
play_time-0.0.3 spec/apk_spec.rb
play_time-0.0.2 spec/apk_spec.rb
play_time-0.0.1 spec/apk_spec.rb