Sha256: cec94ea8f291ef97fcbf29f28bac636ae859127fac1478802ea4f848c0f5694d
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require 'spec_helper' require 'torkify/event/basic_event' module Torkify::Event describe BasicEvent do context "when type is absorb" do before do @event = BasicEvent.new('absorb') end subject { @event } its(:type) { should == 'absorb' } its(:to_s) { should == 'absorb' } its(:message) { should == :on_absorb } end context "when type is stop" do before do @event = BasicEvent.new('stop') end subject { @event } its(:type) { should == 'stop' } its(:to_s) { should == 'stop' } its(:message) { should == :on_stop } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
torkify-0.0.3 | spec/event/basic_event_spec.rb |
torkify-0.0.2 | spec/event/basic_event_spec.rb |