summaryrefslogtreecommitdiff
path: root/spec/unit/provider/template_spec.rb
diff options
context:
space:
mode:
authorAdam Jacob <adam@hjksolutions.com>2008-08-17 00:26:42 -0700
committerAdam Jacob <adam@hjksolutions.com>2008-08-17 00:26:42 -0700
commit7cfe8202680328d133a692c36ed999d5761942fa (patch)
treed4b28402dfc75b1f269e41b08d9c4e866b074fb2 /spec/unit/provider/template_spec.rb
parent1baf929ee98799747cedc275e511bf445792e77a (diff)
downloadchef-7cfe8202680328d133a692c36ed999d5761942fa.tar.gz
Adding remote_file tests
Fixing up some tests Updating the history to reflect our new additions
Diffstat (limited to 'spec/unit/provider/template_spec.rb')
-rw-r--r--spec/unit/provider/template_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/provider/template_spec.rb b/spec/unit/provider/template_spec.rb
index 8b446a73af..4dd688220d 100644
--- a/spec/unit/provider/template_spec.rb
+++ b/spec/unit/provider/template_spec.rb
@@ -7,7 +7,7 @@ describe Chef::Provider::Template, "action_create" do
@rest.stub!(:get_rest).and_return(@tempfile)
@resource = Chef::Resource::Template.new("seattle")
@resource.path(File.join(File.dirname(__FILE__), "..", "..", "data", "seattle.txt"))
- @resource.template("http://foo")
+ @resource.source("http://foo")
@node = Chef::Node.new
@node.name "latte"
@provider = Chef::Provider::Template.new(@node, @resource)
@@ -22,8 +22,8 @@ describe Chef::Provider::Template, "action_create" do
@provider.action_create
end
- it "should get the template based on the resources template value" do
- @rest.should_receive(:get_rest).with(@resource.template, true).and_return(@tempfile)
+ it "should get the template based on the resources source value" do
+ @rest.should_receive(:get_rest).with(@resource.source, true).and_return(@tempfile)
do_action_create
end