spec/dockly/build_cache/docker_spec.rb in dockly-2.1.0 vs spec/dockly/build_cache/docker_spec.rb in dockly-2.2.0
- old
+ new
@@ -5,11 +5,11 @@
let!(:docker) do
Dockly::Docker.new!(:name => :test_docker) do
git_archive '/app'
end
end
- let(:image) { ::Docker::Image.build('from base') }
+ let(:image) { ::Docker::Image.build('from ubuntu:14.04') }
before do
build_cache.s3_bucket 'lol'
build_cache.s3_object_prefix 'swag'
build_cache.image = image
@@ -98,11 +98,11 @@
end
end
describe '#hash_output' do
let(:output) {
- "682aa2a07693cc27756eee9751db3903 /etc/vim/vimrc"
+ "b458e7b28b9bc2d04bd5a3fd0f8d777e /etc/vim/vimrc"
}
context "when hash command returns successfully" do
before do
build_cache.image = image
@@ -125,11 +125,11 @@
end
end
end
describe '#copy_output_dir' do
- let(:container) { Docker::Container.create('Image' => 'base', 'Cmd' => %w[true]) }
+ let(:container) { Docker::Container.create('Image' => 'ubuntu:14.04', 'Cmd' => %w[true]) }
let(:file) { build_cache.copy_output_dir(container) }
let(:hash) { 'this_really_unique_hash' }
let(:path) { file.path }
before do
@@ -154,10 +154,10 @@
end
context "when parameter command returns successfully" do
let(:command) { "uname -r" }
it 'returns the output of the parameter_command' do
- expect(build_cache.parameter_output(command)).to match(/\A3\.\d{2}\.\d-\d-ARCH\Z/)
+ expect(build_cache.parameter_output(command)).to match(/\A3\.\d{2}\.\d-\d{2}-generic\Z/)
end
end
context "when parameter command returns failure" do
let(:command) { 'md6sum' }