Sha256: dd95d8a04c6d3c299460e037c1f7d1bf8122e0acb45430c4cbc0776a97feb624

Contents?: true

Size: 825 Bytes

Versions: 64

Compression:

Stored size: 825 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')
      provider.context.should_receive(:shell).with("divshot push development --token abc123")
      provider.push_app
    end

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

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
dpl-1.5.4 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.269.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.268.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.264.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.265.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.262.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.261.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.259.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.257.1 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.255.2 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.254.2 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.252.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.248.2 spec/provider/divshot_spec.rb
dpl-1.5.3.travis.249.2 spec/provider/divshot_spec.rb
dpl-1.5.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.245.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.244.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.243.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.242.2 spec/provider/divshot_spec.rb
dpl-1.5.2.travis.241.2 spec/provider/divshot_spec.rb