spec/models/concerns/publishable_spec.rb in reactor-0.4.6 vs spec/models/concerns/publishable_spec.rb in reactor-0.4.7

- old
+ new

@@ -15,11 +15,11 @@ previous_changes[:start_at][0] + 30.seconds end publishes :bell publishes :ring, at: :ring_timeout, watch: :start_at - publishes :begin, at: :start_at + publishes :begin, at: :start_at, additional_info: 'curtis was here' publishes :conditional_event_on_save, if: -> { we_want_it } publishes :woof, actor: :pet, target: :self end class TestSubscriber < Reactor::Subscriber @@ -60,11 +60,12 @@ Reactor::Event.should_receive(:reschedule).with :ring, anything Reactor::Event.should_receive(:reschedule).with :begin, hash_including( at: new_start_at, actor: auction, - was: start_at + was: start_at, + additional_info: 'curtis was here' ) auction.start_at = new_start_at auction.save! end @@ -116,6 +117,6 @@ auction.we_want_it = true auction.save TestSubscriber.class_variable_get(:@@called).should be_true end end -end \ No newline at end of file +end