diff options
author | Julian C. Dunn <jdunn@chef.io> | 2016-04-01 15:03:59 -0400 |
---|---|---|
committer | Julian C. Dunn <jdunn@chef.io> | 2016-04-01 15:03:59 -0400 |
commit | 4fca3e98b93bade5507f6ed6d86f6ea6f255912b (patch) | |
tree | 76161226d3ed308ae63a642cd581add5e7eca7fc | |
parent | d726641965b050883767f7e40c673bfc14c9b651 (diff) | |
download | ohai-4fca3e98b93bade5507f6ed6d86f6ea6f255912b.tar.gz |
Added newline to mocked shell_out per code review.
-rw-r--r-- | spec/unit/plugins/aix/os_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/plugins/aix/os_spec.rb b/spec/unit/plugins/aix/os_spec.rb index 6cc8cf37..6cc2227d 100644 --- a/spec/unit/plugins/aix/os_spec.rb +++ b/spec/unit/plugins/aix/os_spec.rb @@ -21,7 +21,7 @@ describe Ohai::System, "AIX os plugin" do before(:each) do @plugin = get_plugin("aix/os") allow(@plugin).to receive(:collect_os).and_return(:aix) - allow(@plugin).to receive(:shell_out).with("oslevel -s").and_return(mock_shell_out(0, "7200-00-01-1543", nil)) + allow(@plugin).to receive(:shell_out).with("oslevel -s").and_return(mock_shell_out(0, "7200-00-01-1543\n", nil)) @plugin.run end |