Sha256: 501329a54152531081f9a7ce48fd7bafa16a109cca5662b90b9fce4f66151618

Contents?: true

Size: 472 Bytes

Versions: 2

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe RokuPackager::Uploader do
  before do
    @uploader = RokuPackager::Uploader.new("192.168.0.10")
  end

  describe '#run' do
    it 'deletes and then uploads the file' do
      @uploader.expects(:delete)
      @uploader.expects(:upload).with('afile')

      @uploader.run('afile')
    end
  end

  describe '#url' do
    it 'builds a proper url' do
      @uploader.url.must_equal URI("http://192.168.0.10/plugin_install")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roku-packager-0.0.3 spec/roku-packager/uploader_spec.rb
roku-packager-0.0.1 spec/roku-packager/uploader_spec.rb