<commit_before>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')<commit_msg>adding command stub<commit_after>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

  before do
    stub_command('docker ps | head -n 1 | grep ^CONTAINER').and_return(true)
  end

  it 'creates docker_service[default]' do
    expect(chef_run).to create_docker_service('default')
{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.0055309734513274336, 'mean_word_length': 4.801282051282051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6070374', 'n_tokens_mistral': 327, 'n_tokens_neox': 308, 'n_words': 59}