Sha256: 382d07e40cafd0ae8f711bf1cd6e0df6659b1580d729d7aa9e72e16ce6186c4e

Contents?: true

Size: 824 Bytes

Versions: 2

Compression:

Stored size: 824 Bytes

Contents

require 'spec_helper'
require 'retrospec'

describe "puppet" do
  let(:plugin) do
    Retrospec::Plugins::V1::Puppet.new('/tmp/testplugin_dir', {:name => 'testplugin', :config1 => 'test'})
  end

  let(:global_opts) do
    {:module_path => '/tmp/testplugin_dir'}
  end

  before :each do
    FileUtils.rm_rf('/tmp/testplugin_dir')
  end

  it 'can show the version' do
    expect(Retrospec::Puppet::VERSION).to eq('0.10.0')
  end

  # disabling for now until we can stub gets
  xit 'can run cli and create new module' do
    expect(Retrospec::Plugins::V1::Puppet.run_cli(global_opts, {},{}, ['new_module'])).to eq(nil)
  end

  xit 'can run cli' do
    Retrospec::Plugins::V1::Puppet.run_cli(global_opts, {},{}, ['new_module'])
    expect(Retrospec::Plugins::V1::Puppet.run_cli(global_opts, {},{}, [])).to eq(nil)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-retrospec-0.11.0 spec/unit/plugin_spec.rb
puppet-retrospec-0.10.0 spec/unit/plugin_spec.rb