spec/server_spec.rb in awestruct-0.5.4.rc3 vs spec/server_spec.rb in awestruct-0.5.4
- old
+ new
@@ -3,10 +3,10 @@
describe Awestruct::Rack::App do
include Rack::Test::Methods
def app
- Awestruct::Rack::App.new(Pathname.new( File.dirname(__FILE__) + '/test-data'))
+ Awestruct::Rack::App.new(Pathname.new( test_data_dir ''))
end
describe "HTML media type" do
it "should return text/html" do
get('/index.html')