Sha256: 380f8e7ab116f81a051d288eeaa143846f6a40366030c1eb68cb338cf1207c53
Contents?: true
Size: 852 Bytes
Versions: 2
Compression:
Stored size: 852 Bytes
Contents
# frozen_string_literal: true describe Nanoc::Int::PrefixedDataSource, 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, '/itemz', '/layoutz') 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/prefixed_data_source_spec.rb |
nanoc-4.8.11 | spec/nanoc/base/repos/prefixed_data_source_spec.rb |