Sha256: c98f6fd08c455668ea3c981854fa8783c696826ca3e4090b2bdbca7c1db5f94a

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

require 'factory_girl'
require 'faker'
require 'event_aggregator'


# Public: Not really used. Might not be needed at all. The same 
# 		  goes for FactoryGirl in general. Might not be needed.
#
class DummyListener
	include EventAggregator::Listener
end

FactoryGirl.define do	
	factory :listener, class: DummyListener do

	end
	factory :message do
		message_type { Faker::Name.name }
		data { Faker::Commerce.product_name } 
		#initialize_with(Faker::Name.name, Faker::Name.name)
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
event_aggregator-1.0.1 spec/factories.rb
event_aggregator-1.0.0.pre spec/factories.rb