Class: Nitrous::IntegrationTest::DummyFile

Inherits:
Object
  • Object
show all
Defined in:
lib/nitrous/integration_test.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, content) ⇒ DummyFile

Returns a new instance of DummyFile.



360
361
362
# File 'lib/nitrous/integration_test.rb', line 360

def initialize(name, content)
  @name, @content = name, content
end

Instance Method Details

#pathObject



368
369
370
# File 'lib/nitrous/integration_test.rb', line 368

def path
  "/tmp/#{@name}"
end

#readObject



364
365
366
# File 'lib/nitrous/integration_test.rb', line 364

def read
  @content
end