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

Specs should test attributes by generating .with() clauses #2

Open
AMeng opened this issue Jun 4, 2014 · 0 comments
Open

Specs should test attributes by generating .with() clauses #2

AMeng opened this issue Jun 4, 2014 · 0 comments

Comments

@AMeng
Copy link
Owner

AMeng commented Jun 4, 2014

Generated specs do not test any extra attributes. For example:

Recipe:

template "destination" do
  source "source"
end

Generated spec currently:

it "creates the destination template" do
  expect(chef_run).to create_template("destination")
end

Generated spec should look like:

it "creates the destination template" do
  expect(chef_run).to create_template("destination").with({:source => "source"})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant