diff options
Diffstat (limited to 'spec/unit/provider/template_spec.rb')
-rw-r--r-- | spec/unit/provider/template_spec.rb | 6 |
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 |