Sha256: 96dadfc21a6948657f7699e606ba6a84dbb386909999af8901cfea85722d3b18

Contents?: true

Size: 837 Bytes

Versions: 55

Compression:

Stored size: 837 Bytes

Contents

require 'spec_helper'
require 'dpl/provider/divshot'

describe DPL::Provider::Divshot do
  subject :provider do
    described_class.new DummyContext.new, :api_key => 'abc123'
  end

  describe "#check_auth" do
    it 'should require an api key' do
      provider.options.update(:api_key => nil)
      expect{ provider.check_auth }.to raise_error("must supply an api key")
    end
  end

  describe "#push_app" do
    it 'should include the environment specified' do
      provider.options.update(:environment => 'development')
      expect(provider.context).to receive(:shell).with("divshot push development --token abc123")
      provider.push_app
    end

    it 'should default to production' do
      expect(provider.context).to receive(:shell).with("divshot push production --token abc123")
      provider.push_app
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
dpl-1.7.1.travis.567.1 spec/provider/divshot_spec.rb
dpl-1.7.1.travis.561.1 spec/provider/divshot_spec.rb
dpl-1.6.10.travis.560.1 spec/provider/divshot_spec.rb
dpl-1.7.0 spec/provider/divshot_spec.rb
dpl-1.6.9.travis.557.1 spec/provider/divshot_spec.rb
dpl-1.6.10.travis.558.1 spec/provider/divshot_spec.rb
dpl-1.6.9 spec/provider/divshot_spec.rb
dpl-1.6.9.travis.555.1 spec/provider/divshot_spec.rb
dpl-1.6.8.travis.554.1 spec/provider/divshot_spec.rb
dpl-1.6.8 spec/provider/divshot_spec.rb
dpl-1.6.7 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.553.1 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.552.1 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.549.1 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.546.1 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.535.1 spec/provider/divshot_spec.rb
dpl-1.6.6.travis.531.1 spec/provider/divshot_spec.rb
dpl-1.6.6 spec/provider/divshot_spec.rb
dpl-1.6.7.travis.527.1 spec/provider/divshot_spec.rb
dpl-1.6.6.travis.526.1 spec/provider/divshot_spec.rb