summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/template_spec.rb
diff options
context:
space:
mode:
authorsersut <serdar@opscode.com>2013-05-31 16:17:46 -0700
committersersut <serdar@opscode.com>2013-05-31 16:17:46 -0700
commitd01e774658c83c89a34886174f0df73e508190b6 (patch)
tree526f930f92a5c8ddc29a9713771a95167c740211 /spec/unit/mixin/template_spec.rb
parentd5b4a8e66b5c2440f4066da7a8e913cfa6135397 (diff)
downloadchef-d01e774658c83c89a34886174f0df73e508190b6.tar.gz
Remove line endings from template tests to fix them on windows.
Diffstat (limited to 'spec/unit/mixin/template_spec.rb')
-rw-r--r--spec/unit/mixin/template_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/mixin/template_spec.rb b/spec/unit/mixin/template_spec.rb
index f92907ef48..b953145234 100644
--- a/spec/unit/mixin/template_spec.rb
+++ b/spec/unit/mixin/template_spec.rb
@@ -70,11 +70,11 @@ describe Chef::Mixin::Template, "render_template" do
it "should render local files" do
begin
tf = Tempfile.new("partial")
- tf.puts "test"
+ tf.write "test"
tf.rewind
output = @template_context.render_template_from_string("before {<%= render '#{tf.path}', :local => true %>} after")
- output.should == "before {test\n} after"
+ output.should == "before {test} after"
ensure
tf.close
end
@@ -90,11 +90,11 @@ describe Chef::Mixin::Template, "render_template" do
it "should render using the source argument if provided" do
begin
tf = Tempfile.new("partial")
- tf.puts "test"
+ tf.write "test"
tf.rewind
output = @template_context.render_template_from_string("before {<%= render 'something', :local => true, :source => '#{tf.path}' %>} after")
- output.should == "before {test\n} after"
+ output.should == "before {test} after"
ensure
tf.close
end