@@ -70,11 +70,13 @@ FakeFS::SpecHelpers to turn FakeFS on and off in a given example group:
70
70
See ` lib/fakefs/spec_helpers.rb ` for more info.
71
71
72
72
73
- Integrating with other file system libraries
73
+ Integrating with other filesystem libraries
74
74
--------------------------------------------
75
- Libraries like [ FileMagic] ( https://rubygems.org/gems/ruby-filemagic ) add
76
- additional functionality to the File class. These should be monkey-patched in
77
- your test harness' helper file.
75
+ Third-party libraries may add methods to filesystem-related classes. FakeFS
76
+ doesn't support these methods out of the box, but you can define fake versions
77
+ yourself on the equivalent FakeFS classes. For example,
78
+ [ FileMagic] ( https://rubygems.org/gems/ruby-filemagic ) adds ` File#content_type ` .
79
+ A fake version can be provided as follows:
78
80
79
81
module FakeFS
80
82
class File
@@ -110,7 +112,7 @@ Speed?
110
112
Installation
111
113
------------
112
114
113
- ### [ Gemcutter ] ( http://gemcutter .org/ )
115
+ ### [ RubyGems ] ( http://rubygems .org/ )
114
116
115
117
$ gem install fakefs
116
118
@@ -127,7 +129,7 @@ Once you've made your great commits:
127
129
1 . [ Fork] [ 0 ] FakeFS
128
130
2 . Create a topic branch - ` git checkout -b my_branch `
129
131
3 . Push to your branch - ` git push origin my_branch `
130
- 4 . Create an [ Issue ] [ 1 ] with a link to your branch
132
+ 5 . Open a [ Pull Request ] [ 1 ]
131
133
5 . That's it!
132
134
133
135
Meta
142
144
* Gems: < http://gemcutter.org/gems/fakefs >
143
145
144
146
[ 0 ] : http://help.github.com/forking/
145
- [ 1 ] : http://github.com/defunkt/fakefs/issues
147
+ [ 1 ] : http://help. github.com/send-pull-requests/
146
148
147
149
Releasing
148
150
---------
0 commit comments