require 'spec_helper'

describe 'Chef::Provider::DockerService::Sysvinit with Centos' do
  let(:chef_run) do
    ChefSpec::SoloRunner.new(
      platform: 'centos',
      version: '7.0'
    ).converge('docker_service_test::sysvinit')
  end

  it 'creates docker_service[default]' do
    expect(chef_run).to create_docker_service('default')
  end

  it 'creates the sysvinit file' do
    expect(chef_run).to render_file('/etc/init.d/docker')
  end
end

require 'spec_helper'

describe 'Chef::Provider::DockerService::Sysvinit with Centos' do
  let(:chef_run) do
    ChefSpec::SoloRunner.new(
      platform: 'centos',
      version: '7.0',
      step_into: 'docker_service'
    ).converge('docker_service_test::sysvinit')
  end

  it 'creates docker_service[default]' do
    expect(chef_run).to create_docker_service('default')
  end

  it 'creates the sysvinit file' do
    expect(chef_run).to render_file('/etc/init.d/docker')
  end
end

Revert "Attempt to fix specs by removing step_into from chef_run"
Revert "Attempt to fix specs by removing step_into from chef_run"

This reverts commit 9cb470d4995a3c1e341f0f5a759d3e9230ab3903.
Removing step_into does not fix the bug
