Sha256: f6fed690d8354bb5d1ba8e94e64532a05ffe4b0c6bb1e68870d704b6ac2fa5f5

Contents?: true

Size: 346 Bytes

Versions: 7

Compression:

Stored size: 346 Bytes

Contents

require 'test_helper'

module Remetric
  class EventTest < ActiveSupport::TestCase
    test "the truth" do
      c = {
        id: "123",
        name: "Awesome Person"
      }
      e = Remetric.track(
        description: "{{ contact.name }} did this thing.",
        contact: c
      )
      assert e.story.include? c[:name]
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
remetric-0.0.9 test/models/remetric/event_test.rb
remetric-0.0.8 test/models/remetric/event_test.rb
remetric-0.0.7 test/models/remetric/event_test.rb
remetric-0.0.6 test/models/remetric/event_test.rb
remetric-0.0.5 test/models/remetric/event_test.rb
remetric-0.0.4 test/models/remetric/event_test.rb
remetric-0.0.3 test/models/remetric/event_test.rb