Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for "group" does not work on Windows #73

Open
mattstratton opened this issue Nov 8, 2013 · 7 comments
Open

Test for "group" does not work on Windows #73

mattstratton opened this issue Nov 8, 2013 · 7 comments

Comments

@mattstratton
Copy link

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
Copy link
Contributor

calavera commented Nov 8, 2013

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
Copy link
Author

I'm having a bit of stumble here - how can I get it to return the value itself?

@calavera
Copy link
Contributor

calavera commented Nov 8, 2013

just do puts group("Guests") and see what it prints

@mattstratton
Copy link
Author

I've been attempting to do `puts group("Guests")`` but still not sure exactly where it goes in the tests in order to prove it out. I'm using this with Berkshelf and vagrant and the built-in default test and helpers from Berkshelf.

default_test rb__xm-demo-cookbook_and_default_test rb__grosvenor-app_and_test_for__group__does_not_work_on_windows__issue__73__calavera_minitest-chef-handler-4

@calavera
Copy link
Contributor

yes, it goes inside the test and you should get something in the output if it's not nil.

@btm
Copy link

btm commented May 13, 2015

This is a duplicate of #63.

@btm btm closed this as completed May 13, 2015
@btm
Copy link

btm commented May 13, 2015

Or maybe it isn't. I don't know.

@btm btm reopened this May 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants