[rspec-users] File.should be_exist?

Esad Hajdarevic esad.talks at esse.at
Thu Apr 12 22:46:05 EDT 2007


Hi!

Is there a nicer way of writing

File.should be_exist('filename')?


File.should exist('foo') throws NoMethodError in 'specification'
undefined method `exist' for #<#<Class:0x3ec1c30>:0x3ebc308>

(I'm using rspec from the trunk)

Esad





More information about the rspec-users mailing list