diff options
Diffstat (limited to 'spec/support/helpers.rb')
-rw-r--r-- | spec/support/helpers.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/helpers.rb b/spec/support/helpers.rb index fe79604f..b30c44d1 100644 --- a/spec/support/helpers.rb +++ b/spec/support/helpers.rb @@ -208,7 +208,11 @@ module Spec end def gemfile(*args) - create_file("Gemfile", *args) + if args.empty? + File.open("Gemfile", "r", &:read) + else + create_file("Gemfile", *args) + end end def lockfile(*args) |