Ver Fonte

Properly access hash value

Scott King há 8 anos atrás
pai
commit
51b62109bd
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      test/marketing_event_test.rb

+ 1 - 1
test/marketing_event_test.rb

@@ -63,6 +63,6 @@ class MarketingEventTest < Test::Unit::TestCase
       is_cumulative: true
     }
     marketing_event.add_engagements(engagement)
-    assert "2017-04-20", engagement.occurred_on
+    assert "2017-04-20", engagement[:occurred_on]
   end
 end