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

ASM-9277 Do not #read a closed file handle, File.read instead #88

Merged
merged 1 commit into from Mar 8, 2017
Merged

Conversation

ripienaar
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 79.656% when pulling 293292d on ripienaar:9277 into 1003b79 on dell-asm:master.

@ripienaar
Copy link
Contributor Author

I'll look at this

@@ -222,7 +222,7 @@
it "should raise an error when install_from_uri job fails" do
data = {:name => "xyz", :description => "test file"}.to_json
data.stubs(:path).returns("/tmp")
data.stubs(:read).returns("tmp")
File.stubs(:read).with("/tmp").returns("tmp")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@logankimmel you do kind of test the unhappy path but stub too much so the problem got hidden :) not really always a good way to stub these file things so it is what it is.

@ripienaar
Copy link
Contributor Author

this coverage decrease is because I added lines but did not add more tests - the line is tested.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 79.719% when pulling 822ebba on ripienaar:9277 into 1003b79 on dell-asm:master.

@ripienaar
Copy link
Contributor Author

@gavin-scott should be mergable now

@gavin-scott
Copy link
Contributor

Nice find, thanks!

@gavin-scott gavin-scott merged commit beeb71a into dell-asm:master Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants