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
File.exist?(file).should be_true or File.exist?(file).should == true Scott On Apr 12, 2007, at 10:46 PM, Esad Hajdarevic wrote:> 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 > > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > rubyforge.org/mailman/listinfo/rspec-users