spec/support/helpers.rb in bundler-1.6.0.rc2 vs spec/support/helpers.rb in bundler-1.6.0
- old
+ new
@@ -162,20 +162,20 @@
config
end
def gemfile(*args)
path = bundled_app("Gemfile")
- path = args.shift if Pathname === args.first
+ path = args.shift if args.first.is_a?(Pathname)
str = args.shift || ""
path.dirname.mkpath
File.open(path.to_s, 'w') do |f|
f.puts strip_whitespace(str)
end
end
def lockfile(*args)
path = bundled_app("Gemfile.lock")
- path = args.shift if Pathname === args.first
+ path = args.shift if args.first.is_a?(Pathname)
str = args.shift || ""
File.open(path.to_s, 'w') do |f|
f.puts strip_whitespace(str)
end
end