Skip to content

Commit

Permalink
Simplifing name of the module
Browse files Browse the repository at this point in the history
  • Loading branch information
Suszyński Krzysztof committed Jul 3, 2017
1 parent 52569eb commit 525a58b
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Style/FileName:
- 'Gemfile'
- 'Rakefile'
- '*.gemspec'
- lib/rspec-puppet-facts-unsupported.rb
- spec/rspec-puppet-facts-unsupported_spec.rb
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Puppet::Examples::Helpers
# RspecPuppetFactsUnsupported

[![Build Status](https://travis-ci.org/coi-gov-pl/rspec-puppet-facts-unsupported.svg?branch=develop)](https://travis-ci.org/coi-gov-pl/rspec-puppet-facts-unsupported)

Expand Down Expand Up @@ -36,11 +36,16 @@ Or install it yourself as:

## Usage

### Simple example (random, unsupported os - facts pair)

```ruby
# in rspec-puppet test
require 'spec_helper'
require 'rspec-puppet-facts-unsupported'

describe '::vagrant', type: :class do
include RspecPuppetFactsUnsupported

on_unsupported_os.first(2).to_h.each do |os, facts|
context "on #{os}" do
let(:facts) { facts }
Expand Down
6 changes: 6 additions & 0 deletions lib/rspec-puppet-facts-unsupported.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'rspec-puppet-facts-unsupported/version'

# A main module of rspec-puppet-facts-unsupported
module RspecPuppetFactsUnsupported
# your code goes here
end
3 changes: 3 additions & 0 deletions lib/rspec-puppet-facts-unsupported/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module RspecPuppetFactsUnsupported
VERSION = '0.1.0'.freeze
end
12 changes: 0 additions & 12 deletions lib/rspec/puppet/facts/unsupported.rb

This file was deleted.

9 changes: 0 additions & 9 deletions lib/rspec/puppet/facts/unsupported/version.rb

This file was deleted.

4 changes: 2 additions & 2 deletions rspec-puppet-facts-unsupported.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec/puppet/facts/unsupported/version'
require 'rspec-puppet-facts-unsupported/version'

Gem::Specification.new do |spec|
spec.name = 'rspec-puppet-facts-unsupported'
spec.version = RSpec::Puppet::Facts::Unsupported::VERSION
spec.version = RspecPuppetFactsUnsupported::VERSION
spec.authors = ['Suszyński Krzysztof']
spec.email = ['[email protected]']

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

RSpec.describe RSpec::Puppet::Facts::Unsupported do
RSpec.describe RspecPuppetFactsUnsupported do
describe '::VERSION' do
let(:version) { described_class::VERSION }
context 'as String' do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def gem_present(name)
require 'pry' if gem_present 'pry'

require 'bundler/setup'
require 'rspec/puppet/facts/unsupported'
require 'rspec-puppet-facts-unsupported'

RSpec.configure do |config|
# Enable flags like --only-failures and --next-failure
Expand Down

0 comments on commit 525a58b

Please sign in to comment.