spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.7.11 vs spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.7.12
- old
+ new
@@ -33,11 +33,11 @@
)
end
let(:action_sequences) { {} }
let(:reps) { Nanoc::Int::ItemRepRepo.new }
- let(:dependency_store) { Nanoc::Int::DependencyStore.new(items, layouts) }
+ let(:dependency_store) { Nanoc::Int::DependencyStore.new(items, layouts, config) }
let(:action_sequence_store) { Nanoc::Int::ActionSequenceStore.new }
let(:checksum_store) { Nanoc::Int::ChecksumStore.new(objects: objects) }
let(:checksums) do
Nanoc::Int::Compiler::Stages::CalculateChecksums.new(
@@ -82,31 +82,10 @@
it { is_expected.to be }
end
end
- context 'ConfigurationModified' do
- let(:rule_class) { Nanoc::Int::OutdatednessRules::ConfigurationModified }
-
- context 'non-outdated' do
- let(:config) { Nanoc::Int::Configuration.new }
-
- before { checksum_store.add(config) }
-
- it { is_expected.not_to be }
- end
-
- context 'outdated' do
- let(:config) { Nanoc::Int::Configuration.new }
- let(:config_old) { Nanoc::Int::Configuration.new(hash: { foo: 125 }) }
-
- before { checksum_store.add(config_old) }
-
- it { is_expected.to be }
- end
- end
-
context 'NotWritten' do
let(:rule_class) { Nanoc::Int::OutdatednessRules::NotWritten }
context 'no path' do
before { item_rep.paths = {} }
@@ -308,9 +287,13 @@
it 'has the one changed attribute' do
expect(subject.attributes).to contain_exactly(:greeting)
end
end
+ end
+
+ context 'config' do
+ # TODO
end
end
context 'RulesModified' do
let(:rule_class) { Nanoc::Int::OutdatednessRules::RulesModified }