(PDOC-3) Use constants instead of strings in tests
Prior to this commit, several rspec tests were using `decribe "string"' instead of `describe constant`. Update the tests to use the constant instead. Additionally, rename the puppet function tests to reflect the renaming of the handlers.
This commit is contained in:
parent
2f7c9e1888
commit
322dbfcc1e
|
@ -3,7 +3,7 @@ require 'puppetx/puppetlabs/strings/yard/handlers/defined_type_handler'
|
||||||
require 'strings_spec/parsing'
|
require 'strings_spec/parsing'
|
||||||
|
|
||||||
|
|
||||||
describe "DefinedTypeHanlder" do
|
describe Puppetx::PuppetLabs::Strings::YARD::Handlers::DefinedTypeHandler do
|
||||||
include StringsSpec::Parsing
|
include StringsSpec::Parsing
|
||||||
|
|
||||||
def the_definedtype()
|
def the_definedtype()
|
||||||
|
|
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
||||||
require 'puppetx/puppetlabs/strings/yard/handlers/host_class_handler'
|
require 'puppetx/puppetlabs/strings/yard/handlers/host_class_handler'
|
||||||
require 'strings_spec/parsing'
|
require 'strings_spec/parsing'
|
||||||
|
|
||||||
describe "HostClassDefintion" do
|
describe Puppetx::PuppetLabs::Strings::YARD::Handlers::HostClassHandler do
|
||||||
include StringsSpec::Parsing
|
include StringsSpec::Parsing
|
||||||
|
|
||||||
def the_hostclass()
|
def the_hostclass()
|
||||||
|
|
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
||||||
require 'puppetx/puppetlabs/strings/yard/handlers/puppet_3x_function_handler'
|
require 'puppetx/puppetlabs/strings/yard/handlers/puppet_3x_function_handler'
|
||||||
require 'strings_spec/parsing'
|
require 'strings_spec/parsing'
|
||||||
|
|
||||||
describe "Puppet3xFunctionHanlder" do
|
describe Puppetx::PuppetLabs::Strings::YARD::Handlers::Puppet3xFunctionHandler do
|
||||||
include StringsSpec::Parsing
|
include StringsSpec::Parsing
|
||||||
|
|
||||||
def the_method()
|
def the_method()
|
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
||||||
require 'puppetx/puppetlabs/strings/yard/handlers/puppet_4x_function_handler'
|
require 'puppetx/puppetlabs/strings/yard/handlers/puppet_4x_function_handler'
|
||||||
require 'strings_spec/parsing'
|
require 'strings_spec/parsing'
|
||||||
|
|
||||||
describe "Pupet4xFunctionHandler" do
|
describe Puppetx::PuppetLabs::Strings::YARD::Handlers::Puppet4xFunctionHandler do
|
||||||
include StringsSpec::Parsing
|
include StringsSpec::Parsing
|
||||||
|
|
||||||
def the_method()
|
def the_method()
|
Loading…
Reference in New Issue