spec/ecloud/spec_helper.rb in fog-0.7.2 vs spec/ecloud/spec_helper.rb in fog-0.8.0
- old
+ new
@@ -311,10 +311,10 @@
match do |actual|
actual[expected_key].all? { |item| expected_array.include?(item) } && actual[expected_key].length == expected_array.length
end
failure_message_for_should do |actual|
"Items not found in array:\n#{expected_array.select { |expected_item| !actual[expected_key].include?(expected_item) }.map { |item| item.inspect }.join("\n")}\n" +
- "Orignal items:\n#{actual[expected_key].map { |item| item.inspect }.join("\n") }\n"+
+ "Original items:\n#{actual[expected_key].map { |item| item.inspect }.join("\n") }\n"+
"Length Difference: #{expected_array.length - actual[expected_key].length}"
end
end
Spec::Matchers.define :have_headers_denoting_a_content_type_of do |expected|