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.6.1.travis.447.1 spec/provider/divshot_spec.rb
dpl-1.6.0 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.445.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.437.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.436.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.435.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.432.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.430.1 spec/provider/divshot_spec.rb
dpl-1.5.11.travis.414.1 spec/provider/divshot_spec.rb
dpl-1.5.10 spec/provider/divshot_spec.rb
dpl-1.5.10.travis.413.1 spec/provider/divshot_spec.rb
dpl-1.5.10.travis.402.1 spec/provider/divshot_spec.rb
dpl-1.6.0.travis.399.1 spec/provider/divshot_spec.rb
dpl-1.5.9 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.397.1 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.394.1 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.393.1 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.390.1 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.373.1 spec/provider/divshot_spec.rb
dpl-1.5.9.travis.372.1 spec/provider/divshot_spec.rb