summaryrefslogtreecommitdiffstats
path: root/spec/unit/parser
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@rimspace.net>2011-03-02 19:06:57 -0800
committerDaniel Pittman <daniel@rimspace.net>2011-03-03 16:29:37 -0800
commit0f6faf5e138e6d11e79b2430b4e6fa6139442509 (patch)
treeeba4624e042fbd367daa0a36c6d2e61c1d2ac03f /spec/unit/parser
parentf490526726a5f35437cda11652ae9977d89279e5 (diff)
downloadpuppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.gz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.tar.xz
puppet-0f6faf5e138e6d11e79b2430b4e6fa6139442509.zip
(#6582) Eliminate the old fakedata helper method.
This is replaced with the new my_fixture{,s} methods; old fixture data is ported into the spec tests at the same time, but left where it was against unit tests that require it. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'spec/unit/parser')
-rwxr-xr-xspec/unit/parser/lexer_spec.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/unit/parser/lexer_spec.rb b/spec/unit/parser/lexer_spec.rb
index 58978ff03..b8254f2e0 100755
--- a/spec/unit/parser/lexer_spec.rb
+++ b/spec/unit/parser/lexer_spec.rb
@@ -651,11 +651,8 @@ describe "Puppet::Parser::Lexer in the old tests" do
end
end
-require File.dirname(__FILE__) + '/../../../test/lib/puppettest'
-require File.dirname(__FILE__) + '/../../../test/lib/puppettest/support/utils'
describe "Puppet::Parser::Lexer in the old tests when lexing example files" do
- extend PuppetTest::Support::Utils
- textfiles do |file|
+ my_fixtures('*.pp') do |file|
it "should correctly lex #{file}" do
lexer = Puppet::Parser::Lexer.new
lexer.file = file