Move manifest matchers into ManifestMatchers module

This commit is contained in:
Tim Sharpe 2011-11-01 14:51:24 +11:00
parent 89ac6b8877
commit b757ad173e
6 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
module RSpec::Puppet
module ClassExampleGroup
include RSpec::Puppet::Matchers
include RSpec::Puppet::ManifestMatchers
include RSpec::Puppet::Support
def subject

View File

@ -1,6 +1,6 @@
module RSpec::Puppet
module DefineExampleGroup
include RSpec::Puppet::Matchers
include RSpec::Puppet::ManifestMatchers
include RSpec::Puppet::Support
def subject

View File

@ -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

View File

@ -1,5 +1,5 @@
module RSpec::Puppet
module Matchers
module ManifestMatchers
extend RSpec::Matchers::DSL
matcher :create_resource do |expected_type, expected_title|

View File

@ -1,5 +1,5 @@
module RSpec::Puppet
module Matchers
module ManifestMatchers
extend RSpec::Matchers::DSL
matcher :include_class do |expected_class|

View File

@ -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'