spec/mongoid/cacheable_spec.rb in mongoid-8.0.2 vs spec/mongoid/cacheable_spec.rb in mongoid-8.0.3

- old
+ new

@@ -43,11 +43,11 @@ context "with updated_at" do context "with the default cache_timestamp_format" do let!(:updated_at) do - document.updated_at.utc.to_s(:nsec) + document.updated_at.utc.to_formatted_s(:nsec) end it "has the id and updated_at key name" do expect(document.cache_key).to eq("dokuments/#{document.id}-#{updated_at}") end @@ -62,11 +62,11 @@ after do Dokument.cache_timestamp_format = :nsec end let!(:updated_at) do - document.updated_at.utc.to_s(:number) + document.updated_at.utc.to_formatted_s(:number) end it "has the id and updated_at key name" do expect(document.cache_key).to eq("dokuments/#{document.id}-#{updated_at}") end @@ -101,10 +101,10 @@ let(:agent) do ShortAgent.create! end let!(:updated_at) do - agent.updated_at.utc.to_s(:nsec) + agent.updated_at.utc.to_formatted_s(:nsec) end it "has the id and updated_at key name" do expect(agent.cache_key).to eq("short_agents/#{agent.id}-#{updated_at}") end