From f5a6cfcc82881da97a3b95581f984a491d6633e6 Mon Sep 17 00:00:00 2001 From: Emma Lejeck Date: Sun, 23 Jul 2023 18:36:59 -0700 Subject: [PATCH] Fix timestamp tests --- spec/typesensual/index_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/typesensual/index_spec.rb b/spec/typesensual/index_spec.rb index 7b72aff..8764e3d 100644 --- a/spec/typesensual/index_spec.rb +++ b/spec/typesensual/index_spec.rb @@ -64,7 +64,7 @@ def self.env it 'returns the alias name and timestamp separated by an @' do time = Time.new(2020, 1, 1).strftime('%s') - expect(subject.collection_name_for(version: time)).to eq('test@1577865600') + expect(subject.collection_name_for(version: time)).to eq("test@#{time}") end end @@ -74,7 +74,7 @@ def self.env it 'returns the alias name, env, and timestamp separated by : and @' do time = Time.new(2020, 1, 1).strftime('%s') - expect(subject.collection_name_for(version: time)).to eq('test:staging@1577865600') + expect(subject.collection_name_for(version: time)).to eq("test:staging@#{time}") end end end