Created
April 7, 2010 19:59
-
-
Save kylefox/359361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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