Skip to content

Instantly share code, notes, and snippets.

@kylefox
Created April 7, 2010 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylefox/359361 to your computer and use it in GitHub Desktop.
Save kylefox/359361 to your computer and use it in GitHub Desktop.
require 'fakefs/safe'
class SiteTest < ActiveSupport::TestCase
def setup
FakeFS.activate!
@site = Factory(:site)
end
def teardown
FakeFS.deactivate!
end
def test_directory_creation
assert File.exists?(@site.directory)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment