Skip to content

Commit

Permalink
added test-unit gem to Gemfile. Removed duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmiani committed Jul 21, 2011
1 parent cb63ff2 commit 648b4b9
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*.sw?
pkg


4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -5,4 +5,8 @@ group :development do
gem 'jeweler'
gem 'sdoc-helpers'
gem 'rdiscount'
end

group :test do
gem 'test-unit'
end
2 changes: 2 additions & 0 deletions Gemfile.lock
Expand Up @@ -24,6 +24,7 @@ GEM
rdoc (= 2.4.3)
sdoc-helpers (0.1.4)
sdoc (~> 0.2)
test-unit (2.3.0)

PLATFORMS
ruby
Expand All @@ -33,3 +34,4 @@ DEPENDENCIES
rdiscount
rspec
sdoc-helpers
test-unit
8 changes: 0 additions & 8 deletions test/fakefs_test.rb
Expand Up @@ -45,15 +45,7 @@ def test_raises_error_when_creating_a_new_dir_with_mkdir_in_non_existent_path
end
end

def test_can_create_directories_with_mkpath
FileUtils.mkpath("/path/to/dir")
assert_kind_of FakeDir, FileSystem.fs['path']['to']['dir']
end

def test_can_create_directories_with_mkpath_and_options
FileUtils.mkpath("/path/to/dir", :mode => 0755)
assert_kind_of FakeDir, FileSystem.fs['path']['to']['dir']
end

def test_can_create_directories_with_mkpath
FileUtils.makedirs("/path/to/dir")
Expand Down
5 changes: 2 additions & 3 deletions test/fs_tests_failing.rb
Expand Up @@ -3,6 +3,7 @@
class AutoTests < Test::Unit::TestCase
include FakeFsTestHelper


def test_symlink_creation
compare_with_real do
check_filesystem
Expand All @@ -14,7 +15,7 @@ def test_symlink_creation
end
end


def test_dir_entries
compare_with_real do
Dir.mkdir mp("somedir")
Expand All @@ -24,7 +25,6 @@ def test_dir_entries
check_value Dir.entries (mp ("."))
end
end


def test_dir_search
compare_with_real do
Expand All @@ -39,4 +39,3 @@ def test_dir_search

end

# $a = AutoTests.new
2 changes: 1 addition & 1 deletion test/passing_fs_test.rb
Expand Up @@ -16,7 +16,7 @@ def test_file_write
end


def test_file_read
def test_file_read_nested
compare_with_real do
Dir.mkdir mp("somedir")
Dir.mkdir mp("somedir/lol")
Expand Down

0 comments on commit 648b4b9

Please sign in to comment.