summaryrefslogtreecommitdiff
path: root/spec/commands/version_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/version_spec.rb')
-rw-r--r--spec/commands/version_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/commands/version_spec.rb b/spec/commands/version_spec.rb
index 4feac234a8..478edb9e67 100644
--- a/spec/commands/version_spec.rb
+++ b/spec/commands/version_spec.rb
@@ -17,10 +17,10 @@ RSpec.describe "bundle version" do
context "with version" do
it "outputs the version with build metadata" do
- date = Bundler::BUILD_METADATA[:built_at]
- git_sha = Bundler::BUILD_METADATA[:git_sha]
+ date = Bundler::BuildMetadata.built_at
+ git_commit_sha = Bundler::BuildMetadata.git_commit_sha
bundle! "version"
- expect(out).to eq("Bundler version #{Bundler::VERSION} (#{date} commit #{git_sha})")
+ expect(out).to eq("Bundler version #{Bundler::VERSION} (#{date} commit #{git_commit_sha})")
end
end
end