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

Yum.repo should show correct name #1390

Closed
Wing924 opened this issue Jan 4, 2017 · 0 comments · Fixed by #1391
Closed

Yum.repo should show correct name #1390

Wing924 opened this issue Jan 4, 2017 · 0 comments · Fixed by #1391

Comments

@Wing924
Copy link
Contributor

Wing924 commented Jan 4, 2017

Description

YumRepo doesn't define to_s.
We expect output like this:

YumRepo: epel should exist

but actual like this:

#<Inspec::Resources::YumRepo:0x007f86e41949d0> should exist

InSpec and Platform Version

1.8.0

Replication Case

spec_rb:

describe yum.repo('epel') do
  it { should exist }
end

execute:

inspec exec spec.rb

will output:

...
#<Inspec::Resources::YumRepo:0x007f6b11c7a7d0> should
...

Possible Solutions

Implement YumRepo#to_s

Wing924 pushed a commit to Wing924/inspec that referenced this issue Jan 4, 2017
inspec#1390

Signed-off-by: Wei, He <weihe924stephen@gmail.com>
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 a pull request may close this issue.

1 participant