spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.6.1 vs spec/nanoc/base/services/outdatedness_rules_spec.rb in nanoc-4.6.2

- old
+ new

@@ -23,13 +23,12 @@ let(:objects) { [config] + code_snippets + [item] } let(:site) do Nanoc::Int::Site.new( config: config, - items: [], - layouts: [], code_snippets: code_snippets, + data_source: Nanoc::Int::InMemDataSource.new([], []), ) end let(:action_provider) { double(:action_provider) } let(:reps) { Nanoc::Int::ItemRepRepo.new } @@ -103,10 +102,10 @@ end context 'path' do let(:path) { 'foo.txt' } - before { item_rep.raw_paths = { last: path } } + before { item_rep.raw_paths = { last: [path] } } context 'not written' do it { is_expected.to be } end