diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-06-23 13:03:10 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-06-23 13:37:12 -0500 |
commit | 217ecd51afd5aac697b502ef68ada30e6ab2068a (patch) | |
tree | 093fa9dc9fee351f40d0097ba209ea4a24be4368 | |
parent | 3432b278cd9adb80a3cba1b40d5fa527ab81a958 (diff) | |
download | bundler-217ecd51afd5aac697b502ef68ada30e6ab2068a.tar.gz |
Update the version spec to handle when the specs start in the day before that example is run
-rw-r--r-- | spec/commands/version_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/commands/version_spec.rb b/spec/commands/version_spec.rb index 478edb9e67..aea247fe90 100644 --- a/spec/commands/version_spec.rb +++ b/spec/commands/version_spec.rb @@ -17,10 +17,8 @@ RSpec.describe "bundle version" do context "with version" do it "outputs the version with build metadata" do - 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_commit_sha})") + expect(out).to match(/\ABundler version #{Regexp.escape(Bundler::VERSION)} \(\d{4}-\d{2}-\d{2} commit [a-fA-F0-9]{7,}\)\z/) end end end |