spec/factories/messages.rb in dispatch-rider-2.1.0 vs spec/factories/messages.rb in dispatch-rider-2.2.0

- old
+ new

@@ -1,11 +1,14 @@ +# frozen_string_literal: true + FactoryBot.define do factory :message, class: 'DispatchRider::Message' do subject { 'sample_handler' } body { { 'key' => 'value', 'guid' => DispatchRider::Debug::PUBLISHER_MESSAGE_GUID, - }} + } + } initialize_with { DispatchRider::Message.new(attributes) } end end