Sha256: e3b0a8ccd29d3c95fa609517fc9aeadc80c630b66432b0a2722481ac32cfaeef

Contents?: true

Size: 417 Bytes

Versions: 9

Compression:

Stored size: 417 Bytes

Contents

require 'spec_helper'

describe Berkshelf::Formatters::Null do
  before { Berkshelf.set_format(:null) }

  [:install, :package, :foo, :bar, :bacon].each do |meth|
    it "does not raise an error for :#{meth}" do
      expect {
        subject.send(meth)
      }.to_not raise_error(Berkshelf::AbstractFunction)
    end

    it "returns nil for :#{meth}" do
      expect(subject.send(meth)).to be_nil
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
berkshelf-3.0.0.beta1 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.7 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.6 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.5 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.4 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.3 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.1 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.0 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.0.beta spec/unit/berkshelf/formatters/null_spec.rb