title: Trouble with Rspec for timestamp in hashes
body: <p>To compare to hashdata we had this in our spec</p>
  
  <pre><code>it 'should return the rec_1 in page format' do
       expect(response_body_json).to eql(Preseneter.new(ActiveRecordObject).page)
  end
  </code></pre>
  
  <p>Presenter is a class that will accept the ActiveRecordObject and respond with hash data in a particular format.</p>
  
  <p><strong>We then added updated_at with timestamp to the hash_data.</strong>
  In my code I have <code>updated_at = Time.zone.now</code>
  So the spec started failing because both the updated_at had difference of few seconds.</p>
  
  <p>Tried stubbing Time.zone</p>
  
  <pre><code>it 'should return the rec_1 in page format' do
       allow(Time.zone).to receive(:now).and_return('hello')
       expect(response_body_json).to eql(Preseneter.new(ActiveRecordObject).page)
  end
  </code></pre>
  
  <p>but now response_body_json.updated_at comes as 'hello'
  but still Right hand side comes with a timestamp</p>
  
  <p>Where am I going wrong???
  or is there any other better way to handle such scenarios?</p>