Sha256: 14eb4ed1df13a9c599d7bb597c61f7653ce1dfc90e7873e0f9ade455753c3a3d

Contents?: true

Size: 791 Bytes

Versions: 10

Compression:

Stored size: 791 Bytes

Contents

require 'spec_helper'
require 'kitchen/driver/docker_cli'

describe Kitchen::Driver::DockerCli, "default_image" do

  before do
    @docker_cli = Kitchen::Driver::DockerCli.new
  end

  example do
    platform = double('platform')
    instance = double('instance')
    platform.stub(:name).and_return("centos-6.4")
    instance.stub(:platform).and_return(platform)
    @docker_cli.stub(:instance).and_return(instance)
    expect(@docker_cli.default_image).to eq 'centos:centos6'
  end

  example do
    platform = double('platform')
    instance = double('instance')
    platform.stub(:name).and_return("ubuntu-12.04")
    instance.stub(:platform).and_return(platform)
    @docker_cli.stub(:instance).and_return(instance)
    expect(@docker_cli.default_image).to eq 'ubuntu:12.04'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kitchen-docker_cli-0.19.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.18.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.17.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.16.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.15.1 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.15.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.14.2 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.14.1 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.14.0 spec/kitchen/transport/docker_cli_spec.rb
kitchen-docker_cli-0.13.1 spec/kitchen/transport/docker_cli_spec.rb