Sha256: 57143dc92437427934a89a05eb7c1836e87520aa1beff7fad1ff18a81cfca7db
Contents?: true
Size: 1.47 KB
Versions: 5
Compression:
Stored size: 1.47 KB
Contents
require 'spec_helper' describe BigbluebuttonRoom do # to ensure that the migration is correct context "db" do it { should have_db_column(:server_id).of_type(:integer) } it { should have_db_column(:owner_id).of_type(:integer) } it { should have_db_column(:owner_type).of_type(:string) } it { should have_db_column(:meetingid).of_type(:string) } it { should have_db_column(:name).of_type(:string) } it { should have_db_column(:attendee_password).of_type(:string) } it { should have_db_column(:moderator_password).of_type(:string) } it { should have_db_column(:welcome_msg).of_type(:string) } it { should have_db_column(:dial_number).of_type(:string) } it { should have_db_column(:logout_url).of_type(:string) } it { should have_db_column(:voice_bridge).of_type(:string) } it { should have_db_column(:max_participants).of_type(:integer) } it { should have_db_column(:private).of_type(:boolean) } it { should have_db_column(:randomize_meetingid).of_type(:boolean) } it { should have_db_column(:external).of_type(:boolean) } it { should have_db_column(:param).of_type(:string) } it { should have_db_index(:server_id) } it { should have_db_index(:meetingid).unique(true) } it { should have_db_index(:voice_bridge).unique(true) } it "default values" do room = BigbluebuttonRoom.new room.private.should be_false room.randomize_meetingid.should be_true room.external.should be_false end end end
Version data entries
5 entries across 5 versions & 1 rubygems