Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 340783
Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +8 lines)
Line  Link Here
0
-- a/lib/fakefs/file.rb
0
++ b/lib/fakefs/file.rb
Lines 1-3 Link Here
1
require 'stringio' unless defined? StringIO
2
1
module FakeFS
3
module FakeFS
2
  class File
4
  class File
3
    PATH_SEPARATOR = '/'
5
    PATH_SEPARATOR = '/'
4
-- a/Rakefile
6
++ b/Rakefile
Lines 1-2 Link Here
1
$LOAD_PATH.unshift File.join(File.dirname(__FILE__))
2
1
desc "Run tests"
3
desc "Run tests"
2
task :test do
4
task :test do
3
-- a/test/fakefs_test.rb
5
++ b/test/fakefs_test.rb
Lines 288-294 Link Here
288
    assert_nil File.size?("/path/to/other.txt")
288
    assert_nil File.size?("/path/to/other.txt")
289
  end
289
  end
290
290
291
  def test_can_check_size?_of_empty_file
291
  def test_can_check_size_of_empty_file
292
    path = '/path/to/file.txt'
292
    path = '/path/to/file.txt'
293
    File.open(path, 'w') do |f|
293
    File.open(path, 'w') do |f|
294
      f << ''
294
      f << ''

Return to bug 340783