Sha256: 76c0153edb487f060d54fb1724aafca766c237ccaabe9911d6708340a4689e09

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 Bytes

Contents

require 'spec_helper'

class Stove::Cookbook
  describe Metadata do
    describe '#to_hash' do
      context 'when the extra metadata is not included' do
        it 'does not include the new metadata fields' do
          hash = subject.to_hash(false)
          expect(hash).to_not include('issues_url')
          expect(hash).to_not include('source_url')
        end
      end

      context 'when the extra metadata is included' do
        it 'includes the new metadata fields' do
          hash = subject.to_hash(true)
          expect(hash).to include('issues_url')
          expect(hash).to include('source_url')
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
stove-4.1.1 spec/unit/cookbook/metadata_spec.rb
stove-4.1.0 spec/unit/cookbook/metadata_spec.rb
stove-4.0.0 spec/unit/cookbook/metadata_spec.rb
stove-3.2.8 spec/unit/cookbook/metadata_spec.rb
wood-stove-3.2.9000 spec/unit/cookbook/metadata_spec.rb
stove-3.2.7 spec/unit/cookbook/metadata_spec.rb