Skip to content

Commit

Permalink
Fix timestamp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NuckChorris committed Jul 24, 2023
1 parent f01f2d2 commit f5a6cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/typesensual/index_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit f5a6cfc

Please sign in to comment.