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