summaryrefslogtreecommitdiff
path: root/spec/install/gemfile
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-01 16:49:59 -0600
committerSamuel Giddins <segiddins@segiddins.me>2017-02-01 16:49:59 -0600
commitd4384e39565b348b394677e2e357f46c601c54fb (patch)
tree784b63bdcf2cc93e570a329788780dcbfdd68398 /spec/install/gemfile
parenta33ce67f4a4e2fa63aa49dc82d052d2826653364 (diff)
downloadbundler-d4384e39565b348b394677e2e357f46c601c54fb.tar.gz
Use RUBY_VERSION for ruby dsl specseg-ruby-version-requirement-valid
Gem.ruby_version includes the patch level, which we dont want
Diffstat (limited to 'spec/install/gemfile')
-rw-r--r--spec/install/gemfile/ruby_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/install/gemfile/ruby_spec.rb b/spec/install/gemfile/ruby_spec.rb
index cff3384298..b9d9683758 100644
--- a/spec/install/gemfile/ruby_spec.rb
+++ b/spec/install/gemfile/ruby_spec.rb
@@ -90,7 +90,7 @@ RSpec.describe "ruby requirement" do
it "allows requirements with trailing whitespace" do
install_gemfile! <<-G
source "file://#{gem_repo1}"
- ruby "#{Gem.ruby_version}\\n \t\\n"
+ ruby "#{RUBY_VERSION}\\n \t\\n"
gem "rack"
G