Module: CemSpecHelper

Defined in:
lib/cem_spec_helper.rb,
lib/cem_spec_helper/version.rb,
lib/cem_spec_helper/mapping_data_spec.rb,
lib/cem_spec_helper/resource_data_spec.rb

Overview

This module is meant to be included in the spec_helper.rb file. It is not meant to be used directly.

Defined Under Namespace

Modules: GeneralSpec, MappingDataSpec, ResourceDataSpec

Constant Summary collapse

MODULE_NAME =
JSON.parse(File.read('metadata.json'))['name'].split('puppetlabs-').last
VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Makes it so the CemSpecHelper module has to be included in the spec_helper.rb file.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/cem_spec_helper.rb', line 11

def self.included(base)
  require 'cem_spec_helper/mapping_data_spec'
  require 'cem_spec_helper/resource_data_spec'
  require 'cem_spec_helper/version'

  RSpec.configure do |config|
    config.include CemSpecHelper::GeneralSpec
    config.extend CemSpecHelper::GeneralSpec
    config.include CemSpecHelper::MappingDataSpec
    config.extend CemSpecHelper::MappingDataSpec
    config.include CemSpecHelper::ResourceDataSpec
    config.extend CemSpecHelper::ResourceDataSpec
  end
end