spec/nanoc/base/repos/snapshot_repo_spec.rb in nanoc-4.6.1 vs spec/nanoc/base/repos/snapshot_repo_spec.rb in nanoc-4.6.2
- old
+ new
@@ -101,11 +101,11 @@
end
end
context 'snapshot def exists' do
before do
- rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name)]
+ rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name, binary: false)]
repo.set_all(rep, snapshot_name => content)
end
context 'content is textual' do
let(:content) { Nanoc::Int::TextualContent.new('hellos') }
@@ -126,11 +126,11 @@
shared_examples 'a non-moving snapshot' do
include_examples 'a non-moving snapshot with content'
context 'snapshot def exists, but not content' do
before do
- rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name)]
+ rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name, binary: false)]
repo.set_all(rep, {})
end
it 'errors' do
expect { subject }.to yield_from_fiber(an_instance_of(Nanoc::Int::Errors::UnmetDependency))
@@ -146,11 +146,11 @@
end
context 'snapshot exists' do
context 'snapshot is not final' do
before do
- rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name)]
+ rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name, binary: false)]
end
context 'snapshot content does not exist' do
before do
repo.set_all(rep, {})
@@ -207,10 +207,10 @@
end
end
context 'snapshot is final' do
before do
- rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name)]
+ rep.snapshot_defs = [Nanoc::Int::SnapshotDef.new(snapshot_name, binary: false)]
end
context 'snapshot content does not exist' do
before do
repo.set_all(rep, {})