Sha256: 1496279bb5a60aa4ecb6f94540f0e08b97d365d76b6d45f11812029610426540

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

require 'fakeweb'

Before do
  FakeWeb.allow_net_connect = false
  FileUtils.rm_rf Mist.repository_location
  FileUtils.rm_rf Rails.root.join('tmp/cache')
  Mist.reload_repository!
  Mist.reset_authorizations!
  Mist.authorize { |controller| true } # user is an admin by default
  
  path = File.expand_path('../../spec/dummy_rails_app/public/posts.html', File.dirname(__FILE__))
  FileUtils.rm path if File.exist?(path)
  path = File.join(File.dirname(path), 'posts')
  FileUtils.rm_rf path
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mist-0.6.3 features/support/setup.rb
mist-0.6.2 features/support/setup.rb
mist-0.6.1 features/support/setup.rb
mist-0.6.0 features/support/setup.rb