Yes, that certainly did the trick...
I use
File.read("/path/to/file").should == "content"
Thanks.
2011/12/20 Michael Guterl :
> On Tue, Dec 20, 2011 at 5:51 AM, Jarl Friis wrote:
>> Hi.
>>
>> Is there any matcher for test file content, anything like
>>
>> file("/path/to/file.txt").should conta
On Tue, Dec 20, 2011 at 5:51 AM, Jarl Friis wrote:
> Hi.
>
> Is there any matcher for test file content, anything like
>
> file("/path/to/file.txt").should contain("File content")
> or
> file("/path/to/file.txt").content.should == "File content"
> or
> file_content("/path/to/file.txt").should == "
Hi.
Is there any matcher for test file content, anything like
file("/path/to/file.txt").should contain("File content")
or
file("/path/to/file.txt").content.should == "File content"
or
file_content("/path/to/file.txt").should == "File content"
or something else?
Jarl