test/test_helper.rb in smurf-1.0.4.rails3.beta2 vs test/test_helper.rb in smurf-1.0.4.rails3.beta3
- old
+ new
@@ -1,9 +1,9 @@
ENV["RAILS_ENV"] = "test"
require ::File.expand_path('../rails/config/environment', __FILE__)
-Rails.public_path = Rails.root + "test" + "rails" + "public"
+# Rails.public_path = Rails.root + "test" + "rails" + "public"
require 'riot'
require 'ostruct'
# require 'smurf'
require ::File.expand_path('../../lib/smurf', __FILE__)
@@ -33,16 +33,16 @@
def controller; nil; end
def config
OpenStruct.new({
:assets_dir => Rails.public_path,
- :javascripts_dir => Rails.public_path + "javascripts",
- :stylesheets_dir => Rails.public_path + "stylesheets",
+ :javascripts_dir => Rails.public_path + "/javascripts",
+ :stylesheets_dir => Rails.public_path + "/stylesheets",
:perform_caching => true
})
end
end
at_exit do
- artifacts = Dir.glob(File.join(AssetFile.base_path, '**', 'cache', 'actual-*.*'))
+ artifacts = Dir.glob(File.join(AssetFile.base_path, '**', 'cache', 'actual*.*'))
FileUtils.rm(artifacts)
end