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

Chefspec 4.1 deprecation warnings #223

Conversation

jperville
Copy link
Contributor

The recently released chefspec 4.1 deprecates syntax that is used in this cookbook's spec and in some of its indirect dependencies (see chef-boneyard/windows#132). As a consequence running specs with chefspec 4.1 results in hundred of lines of deprecation warnings.

This PR does:

  • fix 'should' deprecation warnings by converting them to rspec 3.0 'expect' syntax
  • lock chef-spec version to < 4.1 until the deprecation is fixed in this cookbook's dependencies.

Once all dependencies are updated, I will add a final changeset to this PR to make the specs fully compatible with chefspec 4.1.

@tduffield
Copy link
Contributor

I was actually in the process of converting the syntax but thanks for fixing the expect syntax. If its okay with you i'll probably just cherrypick your first commit.

@jperville
Copy link
Contributor Author

Sure @tduffield it is okay with me. Let's make these tests work again without deprecation spam.

@tduffield
Copy link
Contributor

Manually merged into 0.35-stable branch.

@tduffield tduffield closed this Oct 30, 2014
@jperville
Copy link
Contributor Author

Now that chef-boneyard/windows#132 has been merged, the chef specs (on my local branch) run without warnings. Make sure to berks update to windows 1.34.8 at least.

@jperville jperville deleted the chefspec-41-deprecation-warnings branch September 21, 2015 15:52
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.

None yet

2 participants