diff --git a/spec/serializers/analytics_build_entity_spec.rb b/spec/serializers/analytics_build_entity_spec.rb
index a802c0fa49dd6ed76d8daa14e6122c5dd90c3748..c0b7e86b17cb3d0bf31cdf70fb21141bf4ff12a0 100644
--- a/spec/serializers/analytics_build_entity_spec.rb
+++ b/spec/serializers/analytics_build_entity_spec.rb
@@ -29,7 +29,7 @@ describe AnalyticsBuildEntity do
     end
 
     it 'contains the duration' do
-      expect(subject[:total_time]).to eq({ :hours => 1 })
+      expect(subject[:total_time]).to eq(hours: 1 )
     end
   end
 end