Sha256: 5605844e4e47977e7c4d34a5de5bf8a7f71b26a9a3bc7ddff36b2e44e9b0676e
Contents?: true
Size: 596 Bytes
Versions: 3
Compression:
Stored size: 596 Bytes
Contents
# coding: utf-8 require 'test_helper' class Thinreports::Report::TestEvents < Minitest::Test include Thinreports::TestHelper # Alias Report = Thinreports::Report def test_event_types events = Report::Events.new assert_equal events.instance_variable_get(:@types), [:page_create, :generate] end def test_event_properly_store_the_properties e = Report::Events::Event.new(:page_create, :target, :page, :pages) assert_equal [e.type, e.target, e.page, e.pages], [:page_create, :target, :page, :pages] assert_same e.target, e.report end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thinreports-0.8.2 | test/unit/report/test_events.rb |
thinreports-0.8.1 | test/unit/report/test_events.rb |
thinreports-0.8.0 | test/unit/report/test_events.rb |