You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe I'm doing something wrong, but I get this error where I'd expect the tests to pass:
1) Failure:
test_0001_should_create_the_root_owned_tmp_foo_file(foo::default) [/opt/ruby/lib/ruby/gems/1.9.1/gems/minitest-chef-handler-0.6.1/lib/minitest-chef-handler/resources.rb:33]:
The file does not have the expected owner.
Expected: "root"
Actual: nil
My recipe looks like that:
file "/tmp/foo" do
action :create
owner "root"
group "root"
mode "0644"
content "hey, I'm running on #{node['platform']}!"
end
And the minitest like that:
require 'minitest/spec'
describe 'foo::default' do
include MiniTest::Chef::Assertions
include MiniTest::Chef::Context
include MiniTest::Chef::Resources
it 'should create the root-owned "/tmp/foo" file' do
file("/tmp/foo").must_exist.with(:owner, "root").and(:group, "root").and(:mode, "0644")
end
end
Am I doing something plain wrong or should the test above pass?
I'm using minitest-chef-handler from within the minitest-handler 0.1.0 cookbook. The node to be converged runs Chef 0.10.10 with 1.9.2p290 system Ruby.
P.S.: my workstation from which I provision the node using Vagrant is a Windows 7 box, if that is of interest.
The text was updated successfully, but these errors were encountered:
Maybe I'm doing something wrong, but I get this error where I'd expect the tests to pass:
My recipe looks like that:
And the minitest like that:
Am I doing something plain wrong or should the test above pass?
I'm using minitest-chef-handler from within the minitest-handler 0.1.0 cookbook. The node to be converged runs Chef 0.10.10 with 1.9.2p290 system Ruby.
P.S.: my workstation from which I provision the node using Vagrant is a Windows 7 box, if that is of interest.
The text was updated successfully, but these errors were encountered: