diff options
author | Adam Jacob <adam@hjksolutions.com> | 2008-09-08 23:37:25 -0700 |
---|---|---|
committer | Adam Jacob <adam@hjksolutions.com> | 2008-09-08 23:37:25 -0700 |
commit | fb2f31f253b8cb4bb004a0371c1c729aa975e64c (patch) | |
tree | 924a2389c4be2325ba8f3eb63f26b520fb3590ac /spec/unit/node_spec.rb | |
parent | 0da4ec949d5a1607047b7746f8cce449164056ec (diff) | |
download | chef-fb2f31f253b8cb4bb004a0371c1c729aa975e64c.tar.gz |
Adding specs for new resource types, fixes to node, mixin::template
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index 0365644474..605bb8b628 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -220,11 +220,12 @@ describe Chef::Node, "to_index" do before(:each) do Chef::Config.node_path(File.join(File.dirname(__FILE__), "..", "data", "nodes")) @node = Chef::Node.new() + @node.foo("bar") end it "should return a hash with :index attributes" do @node.name("airplane") - @node.to_index.should == { :index_name => "node", :id => "node_airplane", :name => "airplane" } + @node.to_index.should == { :foo => "bar", :index_name => "node", :id => "node_airplane", :name => "airplane" } end end @@ -322,4 +323,4 @@ describe Chef::Node, "create_design_document" do Chef::CouchDB.stub!(:new).and_return(mock_couch) Chef::Node.create_design_document end -end
\ No newline at end of file +end |