Sha256: f4e7b8e71fc8c40b67762a9c026612106870fc1b14428ffa3e82468704d94aeb
Contents?: true
Size: 1.2 KB
Versions: 4
Compression:
Stored size: 1.2 KB
Contents
require File.expand_path('spec_helper', __dir__) describe Danger::Changelog::Config do describe 'configure' do describe 'placeholder_line' do context 'when without markdown star' do before do Danger::Changelog.configure do |config| config.placeholder_line = "Nothing yet.\n" end end it 'ads missing star and saves configuration' do expect(Danger::Changelog.config.placeholder_line).to eq "* Nothing yet.\n" end end context 'when without trailing newline' do before do Danger::Changelog.configure do |config| config.placeholder_line = '* Nothing yet.' end end it 'ads missing trailing newline and saves configuration' do expect(Danger::Changelog.config.placeholder_line).to eq "* Nothing yet.\n" end end context 'when valid' do before do Danger::Changelog.configure do |config| config.placeholder_line = "* Nothing yet.\n" end end it 'saves configuration' do expect(Danger::Changelog.config.placeholder_line).to eq "* Nothing yet.\n" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
danger-changelog-0.5.0 | spec/config_spec.rb |
danger-changelog-0.4.2 | spec/config_spec.rb |
danger-changelog-0.4.1 | spec/config_spec.rb |
danger-changelog-0.4.0 | spec/config_spec.rb |