Sha256: a40aa51cb8e613a54cea635cdf3ad19a0b194a1492c9b1d964d851fbc2a04d1f

Contents?: true

Size: 912 Bytes

Versions: 34

Compression:

Stored size: 912 Bytes

Contents

require 'spec_helper'

module Berkshelf
  describe BaseFormatter do
    it 'has abstract methods for all the messaging modes' do
      expect {
        subject.install('my_coobook','1.2.3','http://community')
      }.to raise_error(AbstractFunction)

      expect {
        subject.use('my_coobook','1.2.3')
      }.to raise_error(AbstractFunction)

      expect {
        subject.use('my_coobook','1.2.3','http://community')
      }.to raise_error(AbstractFunction)

      expect {
        subject.uploaded('my_coobook','1.2.3','http://chef_server')
      }.to raise_error(AbstractFunction)

      expect {
        subject.msg('something you to know')
      }.to raise_error(AbstractFunction)

      expect {
        subject.error('whoa this is bad')
      }.to raise_error(AbstractFunction)

      expect {
        subject.fetch(double('dependency'))
      }.to raise_error(AbstractFunction)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
berkshelf-5.5.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-5.4.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-5.3.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-5.2.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-5.1.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-5.0.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.3.5 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.3.3 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.3.2 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.3.1 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.3.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.2.3 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.2.2 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.2.1 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.2.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.1.1 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.1.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.0.1 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-4.0.0 spec/unit/berkshelf/formatters/base_spec.rb
berkshelf-3.3.0 spec/unit/berkshelf/formatters/base_spec.rb