Sha256: 9b570771734568b6f35b330c19dc2909663f85e5a17a3362f44e159a9a68a392

Contents?: true

Size: 722 Bytes

Versions: 28

Compression:

Stored size: 722 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "..", "parser_test_helper"))

class EventsTest < Test::Unit::TestCase
  include PDocTestHelper
  
  def setup
    @parser = EventsParser.new
  end
  
  def test_single_event
    fixture = "\n * fires click"
    assert_parsed fixture
    assert_equal %w[click],                  parse(fixture).to_a
  end
  
  def test_single_namespaced_event
    fixture = "\n * fires element:updated"
    assert_parsed fixture
    assert_equal %w[element:updated],        parse(fixture).to_a
  end
  
  def test_multiple_events
    fixture = "\n * fires click, element:updated"
    assert_parsed fixture
    assert_equal %w[click element:updated],  parse(fixture).to_a
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
distil-0.14.4 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.3 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.2 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.2.a vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.1 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.1.a vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.i vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.h vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.g vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.d vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.c vendor/pdoc/test/unit/parser/events_test.rb
distil-0.14.0.b vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.6 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.5 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.4 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.3 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.2 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.1 vendor/pdoc/test/unit/parser/events_test.rb
distil-0.13.0 vendor/pdoc/test/unit/parser/events_test.rb