summaryrefslogtreecommitdiff
path: root/spec/integration/recipes
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2014-05-05 16:47:11 -0700
committerJohn Keiser <jkeiser@opscode.com>2014-05-05 16:47:11 -0700
commit385f993a73726d9e1bfbfcf3454b7f246ba542c6 (patch)
tree810b52d96525563250e15af8f588a23a0a0d1cc6 /spec/integration/recipes
parenta81731b538b50a112712c463255bb52fa592ae68 (diff)
downloadchef-385f993a73726d9e1bfbfcf3454b7f246ba542c6.tar.gz
Fix issue with tests and Windows line endings
Diffstat (limited to 'spec/integration/recipes')
-rw-r--r--spec/integration/recipes/lwrp_inline_resources_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/integration/recipes/lwrp_inline_resources_spec.rb b/spec/integration/recipes/lwrp_inline_resources_spec.rb
index dca5713ace..df666eaaa9 100644
--- a/spec/integration/recipes/lwrp_inline_resources_spec.rb
+++ b/spec/integration/recipes/lwrp_inline_resources_spec.rb
@@ -57,7 +57,8 @@ log_level :warn
EOM
result = shell_out("#{chef_client} -c \"#{path_to('config/client.rb')}\" --no-color -F doc -o 'x::default'", :cwd => chef_dir)
- result.stdout.should include(<<EOM)
+ actual = result.stdout.lines.map { |l| l.chomp }.join("\n")
+ expected = <<EOM
* x_my_machine[me] action create
* x_do_nothing[a] action create (up to date)
* x_do_nothing[b] action create (up to date)
@@ -67,6 +68,8 @@ EOM
* x_do_nothing[b] action create (up to date)
(up to date)
EOM
+ expected = expected.lines.map { |l| l.chomp }.join("\n")
+ actual.should include(expected)
result.error!
end
end