Sha256: 97566f55415657976aabc8fc5f87a0c724de5b6928f3f8884937185b1dca429b

Contents?: true

Size: 542 Bytes

Versions: 5

Compression:

Stored size: 542 Bytes

Contents

module TimelineFu
  module Macros
    def should_fire_event(event_type, opts = {})
      should "fire #{event_type} on #{opts[:on]}" do
        matcher = fire_event(event_type, opts)

        assert_accepts matcher, self.class.name.gsub(/Test$/, '').constantize
      end
    end

    def should_not_fire_event(event_type, opts = {})
      should "fire #{event_type} on #{opts[:on]}" do
        matcher = fire_event(event_type, opts)

        assert_rejects matcher, self.class.name.gsub(/Test$/, '').constantize
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 4 rubygems

Version Path
timeline_fu_fu-0.5 lib/timeline_fu/macros.rb
giraffesoft-timeline_fu-0.2.0 lib/timeline_fu/macros.rb
giraffesoft-timeline_fu-0.3.0 lib/timeline_fu/macros.rb
mifix-timeline_fu-0.2.0 lib/timeline_fu/macros.rb
timeline_fu-0.3.0 lib/timeline_fu/macros.rb