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

reference params in test cases #76

Open
logicminds opened this issue Oct 23, 2017 · 1 comment
Open

reference params in test cases #76

logicminds opened this issue Oct 23, 2017 · 1 comment
Milestone

Comments

@logicminds
Copy link
Contributor

For auto generated tests that contain references to variables $param1 that are also parameters we should just reference the params block instead of inserting the variable in in the test.

@logicminds
Copy link
Contributor Author

logicminds commented Oct 23, 2017

it do
 is_expected.to contain_exec('create stuff')
  .with({
    'provider' => params[:provider]
  })

end
it do
 is_expected.to contain_exec('create stuff')
  .with({
    'provider' => params[:provider],
    'source' => "/tmp/#{params[:source]}"
  })

end

@logicminds logicminds added this to the 1.6.0 milestone Oct 25, 2017
@logicminds logicminds modified the milestones: 1.6.0, 1.7.0 Nov 29, 2017
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