I would try comparing the files, then asserting the resulting boolean value:

assert(FileUtils.compare_file('C:\foo.txt', 'C:\bar.txt'))


On Fri, Oct 9, 2009 at 6:41 AM, Trevor <ti_ma...@btopenworld.com> wrote:

>
> The final part of one of my tests creates an output file and compares
> against a reference file. The files are approx. 230Mb in size
> The test works OK, but when the outputs are different I get both files
> dumped into the console. As they are effectively binary files, this is
> of no use.
> Is there a way to prevent this "dump" occurring while still seeing the
> actual result of the test?
>
> This part of the test is basically:
>
>                @expectedTS = File.read("C:/TSFiles/dvbsub_TC101.TS")
>                @actualTS = File.read('C:/Reference/dvbsub_TC101.TS')
>
>                verify_equal(@expectedTS, @actualTS)
>
> Thanks,
> Trevor
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to