lib/pacto/rake_task.rb in pacto-0.2.4 vs lib/pacto/rake_task.rb in pacto-0.2.5
- old
+ new
@@ -43,10 +43,10 @@
end
puts "Validating contracts in directory #{dir} against host #{host}\n\n"
total_failed = 0
- contracts.each do |contract_file|
+ contracts.sort.each do |contract_file|
print "#{contract_file.split('/').last}:"
contract = Pacto.build_from_file(contract_file, host)
errors = contract.validate
if errors.empty?