Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

define FakeFS::File.fnmatch

  • Loading branch information...
commit 177a09fb2676d6bcf41957e53da4ee03c60b7c2b 1 parent dae7642
Alex Suraci authored Alex Suraci & Ian Baker committed
Showing with 9 additions and 5 deletions.
  1. +9 −0 spec/spec_helper.rb
  2. +0 −5 spec/vmc/cli/app/push/create_spec.rb
View
9 spec/spec_helper.rb
@@ -7,10 +7,19 @@
require "vmc/test_support"
require "webmock"
require "ostruct"
+require "fakefs/safe"
INTEGRATE_WITH = ENV["INTEGRATE_WITH"] || "default"
TRAVIS_BUILD_ID = ENV["TRAVIS_BUILD_ID"]
+OriginalFile = File
+
+class FakeFS::File
+ def self.fnmatch(*args, &blk)
+ OriginalFile.fnmatch(*args, &blk)
+ end
+end
+
def vmc_bin
vmc = File.expand_path("#{SPEC_ROOT}/../bin/vmc.dev")
if INTEGRATE_WITH != 'default'
View
5 spec/vmc/cli/app/push/create_spec.rb
@@ -76,8 +76,6 @@
FakeFS.activate!
Dir.mkdir(path)
- # fakefs removes fnmatch :'(
- stub(create.send(:detector)).detect_framework
File.open("#{path}/Procfile", "w") do |file|
file.write("this is a procfile")
end
@@ -152,9 +150,6 @@
before do
FakeFS.activate!
Dir.mkdir(path)
-
- # fakefs removes fnmatch :'(
- stub(create.send(:detector)).detect_framework
end
after do
Please sign in to comment.
Something went wrong with that request. Please try again.