Skip to content

Commit

Permalink
cleanup assets, themes etc in stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Fuchs committed Jul 16, 2008
1 parent f2a6f26 commit 2770b7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions stories/helper.rb
Expand Up @@ -10,6 +10,11 @@
ActionController::Base.perform_caching = true

Theme.root_dir = RAILS_ROOT + '/tmp'
Asset.base_dir = RAILS_ROOT + '/tmp/assets'

cache_dirs = ActionController::Base.page_cache_directory, Theme.base_dir, Asset.base_dir
cache_dirs.each{|dir| FileUtils.rm_rf dir unless dir.empty? or dir == '/' }
FileUtils.rm_rf Dir[RAILS_ROOT + "/tmp/webrat*"]

Spec::Runner.configure do |config|
config.include Spec::Story
Expand Down
2 changes: 1 addition & 1 deletion stories/run.rb
Expand Up @@ -10,4 +10,4 @@
with_steps_for *steps(:all) do
run path, :type => RailsStory
end
end
end

0 comments on commit 2770b7b

Please sign in to comment.