Guest User

Untitled

a guest
Jan 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. it "works with output of find calle with a search pattern" do
  2. FS.makedirs('foo/bar')
  3. FS.makedir('foo/baz')
  4. FS.touch('foo/bar/ruby1.rb')
  5. FS.touch('foo/ruby2.rb')
  6. FS.makedir('git')
  7. FS.to_tree(FS.find('.', "*.rb") - FS.find('.','git/**/*').should == <<EOF
  8. `--foo/
  9. |--bar/
  10. | `--ruby1.rb
  11. `--ruby2.rb
  12. EOF
  13. end
Add Comment
Please, Sign In to add comment