Sha256: 02c7c9c6a944761836551526f2273567cc9255080a3904bb90d767bf02a57143

Contents?: true

Size: 388 Bytes

Versions: 17

Compression:

Stored size: 388 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
    end

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
berkshelf-2.0.18 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.17 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.16 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.15 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta7 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta6 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.14 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta5 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.13 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.12 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.11 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta4 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta3 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.10 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.9 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-2.0.8 spec/unit/berkshelf/formatters/null_spec.rb
berkshelf-3.0.0.beta2 spec/unit/berkshelf/formatters/null_spec.rb