Module: Ghaki::CoreExt::File::SpecHelper::FakeTemp
- Defined in:
- lib/ghaki/core_ext/file/spec_helper/fake_temp.rb
Instance Method Summary collapse
Instance Method Details
#setup_fake_tempfile ⇒ Object
11 12 13 14 |
# File 'lib/ghaki/core_ext/file/spec_helper/fake_temp.rb', line 11 def setup_fake_tempfile @fake_tempfile = StringIO.new() ::File.stubs(:with_opened_temp).yields(@fake_tempfile) end |