Skip to content

Instantly share code, notes, and snippets.

@smtlaissezfaire
Created December 18, 2010 19:31
Show Gist options
  • Save smtlaissezfaire/746788 to your computer and use it in GitHub Desktop.
Save smtlaissezfaire/746788 to your computer and use it in GitHub Desktop.
irb session
>> require 'fakefs'
=> true
>> require 'fakefs/version'
=> true
>> FakeFS::Version::VERSION
=> "0.3.1"
>> RUBY_VERSION
=> "1.8.7"
>> File.open("foo", "w") { |f| f << "something" }
=> #<FakeFS::File:0x10163c750>
>> File.read("foo")
=> "something"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment