-
Notifications
You must be signed in to change notification settings - Fork 105
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
Conversation
Surely these will be broken on non-linux, but I need to get it off this workstation.
spec/acceptance/new_class_spec.rb
Outdated
end | ||
|
||
context 'when creating the main class' do | ||
describe command("cd foo && BUNDLE_GEMFILE=../Gemfile #{path_to_pdk} new class foo") do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scotje 's work here might help with this:
https://github.com/puppetlabs/pdk/pull/62/files#diff-174f7dfb508155027cb4c3e9a1840591R28
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rvm: not even once
There was a problem hiding this comment.
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>
I've changed the pdk path for local acceptance tests so that we generate and use the binstub instead of |
df8ab5c
to
f83124d
Compare
f83124d
to
99a99dd
Compare
Surely these will be broken on non-linux, but I need to get it off this
workstation.