Test for "group" does not work on Windows
mattstratton opened this issue · 7 comments
mattstratton commented
When attempting to run the following test:
it "really hopes that the group exists" do
group("Guests").must_exist
end
The test will fail
1) Failure:
matt-app::default#test_0003_really hopes that the group exists [C:/var/chef/minitest/matt-app/default_test.rb:20]:
Expected group 'Guests' to exist
calavera commented
what does group("Guests")
return? if it doesn't return what you expect is a Chef issue. If it does, it's probably a bug in the must_exist
assertion.
mattstratton commented
I'm having a bit of stumble here - how can I get it to return the value itself?
calavera commented
just do puts group("Guests")
and see what it prints
mattstratton commented
calavera commented
yes, it goes inside the test and you should get something in the output if it's not nil.
btm commented
Or maybe it isn't. I don't know.