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.17.travis.6637.6 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.16 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.16.travis.6625.6 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.16.travis.6619.6 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.16.travis.5961.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.15 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.15.travis.5877.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.14 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.13 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.13.travis.4159.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.13.travis.4141.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.13.travis.4040.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.13.travis.4033.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.12 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.12.travis.4032.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.12.travis.3794.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.12.travis.3506.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.11.travis.3504.5 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.11 spec/provider/bitballoon_spec.rb
dpl-bitballoon-1.10.11.travis.3499.5 spec/provider/bitballoon_spec.rb