Sha256: 36e2090bf5dc9e77477d033e0e8e0ebc3f43776d20f0222c2d303b7ce88209b7

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

FactoryGirl.define do
  factory  :bigbluebutton_room do |r|
    # meetingid with a random factor to avoid duplicated ids in consecutive test runs
    r.sequence(:meetingid) { |n| "meeting-#{n}-" + SecureRandom.hex(4) }

    r.association :server, :factory => :bigbluebutton_server
    r.sequence(:name) { |n| "Name#{n}" }
    r.attendee_password { Forgery(:basic).password :at_least => 10, :at_most => 16 }
    r.moderator_password { Forgery(:basic).password :at_least => 10, :at_most => 16 }
    r.welcome_msg { Forgery(:lorem_ipsum).sentences(2) }
    r.private false
    r.randomize_meetingid false
    r.sequence(:param) { |n| "meeting-#{n}" }
    r.external false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.2.0 spec/factories/bigbluebutton_room.rb