Sha256: 9888a38b6e7e63058e5a7ad69360908487fe58fe5b0599009ee216adbc0185a5

Contents?: true

Size: 885 Bytes

Versions: 551

Compression:

Stored size: 885 Bytes

Contents

require 'spec_helper'
require 'dpl/provider/bitballoon'

describe DPL::Provider::BitBalloon do
  subject :provider do
    described_class.new(DummyContext.new,{})
  end

  describe "#needs_key?" do
    example do
      expect(provider.needs_key?).to eq(false)
    end
  end

  describe "#push_app" do
    example "Without optional parameters" do
      expect(provider.context).to receive(:shell).with("bitballoon deploy")
      provider.push_app
    end

    example "With optional parameters" do
      provider.options.update(local_dir: 'build')
      provider.options.update(access_token:'fake-access-token')
      provider.options.update(site_id:'fake-site')

      expected_command = "bitballoon deploy ./build --site-id=fake-site --access-token=fake-access-token"

      expect(provider.context).to receive(:shell).with(expected_command)
      provider.push_app
    end
  end
end

Version data entries

551 entries across 551 versions & 3 rubygems

Version Path
dpl-bitballoon-1.10.11.travis.3497.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.10 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.9 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.9.travis.3280.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.9.travis.3258.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.8 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.8.travis.3236.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.8.travis.3216.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.8.travis.3178.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3177.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3151.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3128.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3125.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3126.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.7.travis.3120.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.6.travis.3119.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.6 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.6.travis.3118.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.6.travis.3114.5 spec/provider/bitballoon_spec.rb