summaryrefslogtreecommitdiff
path: root/spec/data
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2013-06-14 16:20:40 -0700
committerdanielsdeleo <dan@opscode.com>2013-06-14 17:11:22 -0700
commit8eb66a3463bb58a96b68dc156551f5772264b725 (patch)
tree0355d13fa8d3625d0b32dbce706e0486ca62d54b /spec/data
parent51d8059bd067f1a67361db3705648e4394c85d84 (diff)
downloadchef-8eb66a3463bb58a96b68dc156551f5772264b725.tar.gz
don't depend on line separator in partial tests
In some windows testing environments no line separator conversion is happening. This may be a function of git settings, or something else in our test cluster environment. In any case, line separators are irrelevant to these tests, as they are testing the partial template feature. We could remove the line endings from the test fixture files, but editors like vim add hidden newlines at the end of files, so this is difficult to maintain. Stripping the line endings within the test code is more sustainable option.
Diffstat (limited to 'spec/data')
-rw-r--r--spec/data/partial_one.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/data/partial_one.erb b/spec/data/partial_one.erb
index 3bbb792092..9fd79a0d65 100644
--- a/spec/data/partial_one.erb
+++ b/spec/data/partial_one.erb
@@ -1 +1 @@
-partial one <%= render 'test.erb', :cookbook => 'openldap' %> calling home
+partial one <%= render('test.erb', :cookbook => 'openldap').strip %> calling home