-
Notifications
You must be signed in to change notification settings - Fork 70
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
Fix vmware spec tests #2
Conversation
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.
spec/.spec_helper.rb.swp
added by accident
about the require
I have no strong opinion, up to you.
otherwise, good to go
@@ -1,4 +1,4 @@ | |||
require Rails.root.join('spec/tools/vim_data/vim_data_test_helper') | |||
require File.join(ManageIQ::Providers::Vmware::Engine.root, 'spec/tools/vim_data/vim_data_test_helper.rb') |
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.
You can also
require ManageIQ::Providers::Vmware::Engine.root.join('spec/tools/vim_data/vim_data_test_helper.rb').to_s
or, what I do in aws, require_relative
and keep the file close to where it's actually used.
Like vim_data_test_helper
seems to be only used by specs in vmware/infra_manager
- why not put it here?
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.
Yeah I like the idea of moving it, will push a commit for that shortly
@@ -3,10 +3,9 @@ | |||
SimpleCov.start | |||
end | |||
|
|||
# Uncomment in case you use vcr cassettes |
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.
oops, missed that. sorry
9c12213
to
9ce2bff
Compare
Ah how did that sneak in :( good 👀 fixed |
Okay moved |
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.
LGTM, cant merge though
4a66ce3
to
5e9cade
Compare
Moving the This gets the tests green, @Fryguy @blomquisg merge? |
Add services
Missed the big comment that said
# Uncomment in case you use vcr cassettes
and requires withRails.root
are no longer working so use theEngine.root