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

(SDK-197) add acceptance tests for new class command #65

Merged
merged 2 commits into from
Jun 8, 2017

Conversation

DavidS
Copy link
Contributor

@DavidS DavidS commented Jun 6, 2017

Surely these will be broken on non-linux, but I need to get it off this
workstation.

Surely these will be broken on non-linux, but I need to get it off this
workstation.
end

context 'when creating the main class' do
describe command("cd foo && BUNDLE_GEMFILE=../Gemfile #{path_to_pdk} new class foo") do
Copy link

@james-stocks james-stocks Jun 7, 2017

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assume you meant @scotje ?

Yeah binstubs look like a good way out here - I'll try that. It might also help with the bundle/rvm fighting we ran into yesterday...

Choose a reason for hiding this comment

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

I assume you meant @scotje ?

I assume so too :-) ... looks exciting thought.

Copy link
Contributor

Choose a reason for hiding this comment

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

rvm: not even once

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the binstubs do work on windows as well, you just have to explicitly run them with the ruby interpreter, so ruby /path/to/binstub/pdk <args>

@rodjek
Copy link
Contributor

rodjek commented Jun 8, 2017

I've changed the pdk path for local acceptance tests so that we generate and use the binstub instead of bundle exec. This way we can avoid having to set the BUNDLE_GEMFILE env var.

@rodjek rodjek force-pushed the sdk-197-add-acceptance-tests branch 3 times, most recently from df8ab5c to f83124d Compare June 8, 2017 03:43
@rodjek rodjek force-pushed the sdk-197-add-acceptance-tests branch from f83124d to 99a99dd Compare June 8, 2017 04:09
@DavidS DavidS changed the title [do not merge] (SDK-197) add acceptance tests for new class command (SDK-197) add acceptance tests for new class command Jun 8, 2017
@DavidS DavidS merged commit 1906f1e into puppetlabs:master Jun 8, 2017
@DavidS DavidS deleted the sdk-197-add-acceptance-tests branch June 8, 2017 08:20
@chelnak chelnak added the maintenance Internal maintenance work that shouldn't appear in the changelog label Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Internal maintenance work that shouldn't appear in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants