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

Add unit tests #131

Merged
merged 1 commit into from
Oct 28, 2016
Merged

Add unit tests #131

merged 1 commit into from
Oct 28, 2016

Conversation

vjeffrey
Copy link

@vjeffrey vjeffrey commented Oct 28, 2016

This commit adds more testing!

A few of them I couldn't get to work correctly....

@vjeffrey vjeffrey force-pushed the vj/add-tests branch 2 times, most recently from 8f4db04 to 0cbbe69 Compare October 28, 2016 02:31
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Great work @vjeffrey

@@ -15,15 +15,16 @@ def report
interval_enabled = node['audit']['interval']['enabled']
interval_time = node['audit']['interval']['time']
report_file = node['audit']['output']
test_array = node['audit']['profiles']
Copy link
Contributor

Choose a reason for hiding this comment

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

Is profiles maybe a better name? I was thinking about an array of single tests first

Copy link
Author

Choose a reason for hiding this comment

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

yup! 👍

@@ -20,6 +20,9 @@
require 'spec_helper'
Copy link
Contributor

Choose a reason for hiding this comment

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

We may should rename the spec to visibility_spec.rb. Do we intent to add more specs for other reporters?

Copy link
Author

@vjeffrey vjeffrey Oct 28, 2016

Choose a reason for hiding this comment

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

yup, i'll move everything to its own spot

@chris-rock chris-rock changed the title add tests Add unit tests Oct 28, 2016
require_relative '../../../libraries/collector_classes'

# TODO: can't get this to work: `# ./libraries/collector_classes.rb:251:in `node_info'`
# need to figure out how to mock the run context
Copy link
Author

Choose a reason for hiding this comment

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

:( can't figure out how to mock the run context..is there another way around this?

Copy link
Contributor

Choose a reason for hiding this comment

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

The solution is the removal of the run context. I'll work on a PR to cover that

Copy link
Author

Choose a reason for hiding this comment

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

thank you!!

@chris-rock chris-rock added this to the 2.0 milestone Oct 28, 2016
Signed-off-by: Victoria Jeffrey <[email protected]>
@chris-rock chris-rock merged commit 0fae37c into master Oct 28, 2016
@chris-rock chris-rock deleted the vj/add-tests branch October 28, 2016 14:26
@chris-rock
Copy link
Contributor

This fixes #128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants