examples/app/blog/spec/blog.rb in Pistos-ramaze-2008.09 vs examples/app/blog/spec/blog.rb in Pistos-ramaze-2008.12

- old
+ new

@@ -1,11 +1,11 @@ require 'ramaze' require 'ramaze/spec/helper' spec_require 'hpricot', 'sequel' -$LOAD_PATH.unshift base = __DIR__/'..' +$LOAD_PATH.unshift base = __DIR__('..') require 'start' describe 'Blog' do behaves_like 'http' ramaze :public_root => base/:public, @@ -81,7 +81,7 @@ page.status.should == 302 page.location.should == '/' (check_page/'div.entry').size.should == 1 end - FileUtils.rm_f(__DIR__/'../blog.db') + FileUtils.rm_f(__DIR__('../blog.db')) end