<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -103,8 +103,7 @@ class SourcesGetOneTest &lt; RequestTestCase
     context &quot;#{role} API key : 2 comments : get /:id&quot; do
       before do
         
-        @created_at = Time.now
-        Timecop.travel(@created_at)
+        Timecop.freeze
         
         @comments = [
           create_comment({
@@ -126,13 +125,13 @@ class SourcesGetOneTest &lt; RequestTestCase
           end
         end
   
-        Timecop.return
         get &quot;/#{@source.id}&quot;, :api_key =&gt; primary_api_key_for(role)
       end
       
       after do
         @ratings.each { |x| x.destroy }
         @comments.each { |x| x.destroy }
+        Timecop.freeze
       end
       
       use &quot;successful GET source with :id&quot;
@@ -144,7 +143,7 @@ class SourcesGetOneTest &lt; RequestTestCase
             &quot;href&quot;   =&gt; &quot;/comments/#{comment.id}&quot;,
             &quot;text&quot;   =&gt; comment.text,
             &quot;parent&quot; =&gt; nil,
-            &quot;created_at&quot; =&gt; @created_at.gmtime.strftime(&quot;%Y/%m/%d %H:%M:%S +0000&quot;),
+            &quot;created_at&quot; =&gt; Time.now.gmtime.strftime(&quot;%Y/%m/%d %H:%M:%S +0000&quot;),
             &quot;rating_stats&quot; =&gt; {
               &quot;count&quot;   =&gt; 2,
               &quot;total&quot;   =&gt; 1,</diff>
      <filename>test/resource/sources/sources_get_one_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>49d9be0858569d3faf4d1cd948fa0fd1e98ef986</id>
    </parent>
  </parents>
  <author>
    <name>Luigi Montanez</name>
    <email>luigi.montanez@gmail.com</email>
  </author>
  <url>http://github.com/sunlightlabs/datacatalog-api/commit/33c88d929717e8d9a04ac92bcda08d773a1e529b</url>
  <id>33c88d929717e8d9a04ac92bcda08d773a1e529b</id>
  <committed-date>2009-11-06T13:22:15-08:00</committed-date>
  <authored-date>2009-11-06T13:22:15-08:00</authored-date>
  <message>Refactor use of Timecop [Story1666366]</message>
  <tree>cce8dfbad48bc36cac1e0b7f3207b5598b0ff8af</tree>
  <committer>
    <name>Luigi Montanez</name>
    <email>luigi.montanez@gmail.com</email>
  </committer>
</commit>
