Sha256: 9d5bae6c49f0455e5b1efd263eeed18a0967c679608a94a318e0dbf83cd3fba7
Contents?: true
Size: 835 Bytes
Versions: 2
Compression:
Stored size: 835 Bytes
Contents
# frozen_string_literal: true describe Nanoc::Int::InMemDataSource, stdio: true do let(:klass) do Class.new(Nanoc::DataSource) do def item_changes %i[one_foo one_bar] end def layout_changes %i[one_foo one_bar] end end end let(:original_data_source) do klass.new({}, nil, nil, {}) end subject(:data_source) do described_class.new([], [], original_data_source) end describe '#item_changes' do subject { data_source.item_changes } it 'yields changes from the original' do expect(subject).to eq(original_data_source.item_changes) end end describe '#layout_changes' do subject { data_source.layout_changes } it 'yields changes from the original' do expect(subject).to eq(original_data_source.layout_changes) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.8.12 | spec/nanoc/base/repos/in_mem_data_source_spec.rb |
nanoc-4.8.11 | spec/nanoc/base/repos/in_mem_data_source_spec.rb |