Class: TestLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/appswarm/features_helper.rb

Constant Summary collapse

@@file =
nil

Class Method Summary collapse

Class Method Details

.log(*x) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/appswarm/features_helper.rb', line 33

def self.log(*x)
  unless @@file
    path=File.expand_path('../../test.log',__FILE__)
    @@file=File.open(path,"w+")
  end
  @@file.puts x.inspect
  @@file.flush
end