Move manifest matchers into ManifestMatchers module
This commit is contained in:
parent
89ac6b8877
commit
b757ad173e
|
@ -1,6 +1,6 @@
|
|||
module RSpec::Puppet
|
||||
module ClassExampleGroup
|
||||
include RSpec::Puppet::Matchers
|
||||
include RSpec::Puppet::ManifestMatchers
|
||||
include RSpec::Puppet::Support
|
||||
|
||||
def subject
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module RSpec::Puppet
|
||||
module DefineExampleGroup
|
||||
include RSpec::Puppet::Matchers
|
||||
include RSpec::Puppet::ManifestMatchers
|
||||
include RSpec::Puppet::Support
|
||||
|
||||
def subject
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module RSpec::Puppet
|
||||
module Matchers
|
||||
module ManifestMatchers
|
||||
class CreateGeneric
|
||||
def initialize(*args, &block)
|
||||
@exp_resource_type = args.shift.to_s.gsub(/^(create|contain)_/, '')
|
||||
|
@ -76,7 +76,7 @@ module RSpec::Puppet
|
|||
end
|
||||
|
||||
def method_missing(method, *args, &block)
|
||||
return RSpec::Puppet::Matchers::CreateGeneric.new(method, *args, &block) if method.to_s =~ /^(create|contain)_/
|
||||
return RSpec::Puppet::ManifestMatchers::CreateGeneric.new(method, *args, &block) if method.to_s =~ /^(create|contain)_/
|
||||
super
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module RSpec::Puppet
|
||||
module Matchers
|
||||
module ManifestMatchers
|
||||
extend RSpec::Matchers::DSL
|
||||
|
||||
matcher :create_resource do |expected_type, expected_title|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
module RSpec::Puppet
|
||||
module Matchers
|
||||
module ManifestMatchers
|
||||
extend RSpec::Matchers::DSL
|
||||
|
||||
matcher :include_class do |expected_class|
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = 'rspec-puppet'
|
||||
s.version = '0.0.9'
|
||||
s.version = '0.0.10'
|
||||
s.homepage = 'https://github.com/rodjek/rspec-puppet/'
|
||||
s.summary = 'RSpec tests for your Puppet manifests'
|
||||
s.description = 'RSpec tests for your Puppet manifests'
|
||||
|
|
Loading…
Reference in New Issue