diff options
author | Markus Roberts <Markus@reality.com> | 2009-10-21 22:10:02 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2009-10-23 15:49:31 +1100 |
commit | 4d9f76ad2653542e53a8020be9eeadb8f354837c (patch) | |
tree | e6f8d17ba1a8a1f86d0001797074c1478167d91f /spec/unit | |
parent | b4bcfe9106c43855fbb4d1d147945ddb0e08ab34 (diff) | |
download | puppet-4d9f76ad2653542e53a8020be9eeadb8f354837c.tar.gz puppet-4d9f76ad2653542e53a8020be9eeadb8f354837c.tar.xz puppet-4d9f76ad2653542e53a8020be9eeadb8f354837c.zip |
Fix for #2745 fakedata tests not working
The old fakedata test facility was not playing nicely with the
spec tests; although it looped through all the files failures
in any example file after the first were being ignored because
of the way fakedataparse was interacting with the before blocks.
Signed-off-by: Markus Roberts <Markus@reality.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-x | spec/unit/provider/ssh_authorized_key/parsed.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/unit/provider/ssh_authorized_key/parsed.rb index ade738b32..13bd08bd8 100755 --- a/spec/unit/provider/ssh_authorized_key/parsed.rb +++ b/spec/unit/provider/ssh_authorized_key/parsed.rb @@ -41,12 +41,12 @@ describe provider_class do return text end - it "should be able to parse each example" do - fakedata("data/providers/ssh_authorized_key/parsed").each { |file| + PuppetTest.fakedata("data/providers/ssh_authorized_key/parsed").each { |file| + it "should be able to parse example data in #{file}" do puts "Parsing %s" % file fakedataparse(file) - } - end + end + } it "should be able to generate a basic authorized_keys file" do key = mkkey({ |