Skip to content

fix global state pollution issues across examples#54

Merged
tas50 merged 2 commits intomasterfrom
lcg/spec-testing-globals-always-ends-in-tears
Jan 4, 2019
Merged

fix global state pollution issues across examples#54
tas50 merged 2 commits intomasterfrom
lcg/spec-testing-globals-always-ends-in-tears

Conversation

@lamont-granquist
Copy link
Copy Markdown
Contributor

since classes are global state, having a single TestCLI class that
threads through all the examples creates state pollution that can
cause ordering problems.

solve this by rewiring TestCLI to a new class every single time.

since classes are global state, having a single TestCLI class that
threads through all the examples creates state pollution that can
cause ordering problems.

solve this by rewiring TestCLI to a new class every single time.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
@lamont-granquist lamont-granquist requested a review from a team January 4, 2019 19:29
Comment thread spec/mixlib/cli_spec.rb Outdated
#
# Author:: Adam Jacob (<adam@chef.io>)
# Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
# Copyright:: Copyright (c) 2008-2018, Chef Software Inc.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2019

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
@tas50 tas50 merged commit fe76d3f into master Jan 4, 2019
@chef-ci chef-ci deleted the lcg/spec-testing-globals-always-ends-in-tears branch January 4, 2019 19:39
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

Successfully merging this pull request may close these issues.

2 participants