Sha256: 9160ab201aec63e01d13dd0fa618edef715092f3b8bc072dd28e489c8a232970
Contents?: true
Size: 1.79 KB
Versions: 2
Compression:
Stored size: 1.79 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_key).of_type(:string) } it { should have_db_column(:moderator_key).of_type(:string) } it { should have_db_column(:attendee_api_password).of_type(:string) } it { should have_db_column(:moderator_api_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(:external).of_type(:boolean) } it { should have_db_column(:param).of_type(:string) } it { should have_db_column(:record_meeting).of_type(:boolean) } it { should have_db_column(:duration).of_type(:integer) } it { should have_db_column(:created_at).of_type(:datetime) } it { should have_db_column(:updated_at).of_type(:datetime) } it { should have_db_column(:create_time).of_type(:integer) } it { should have_db_index(:server_id) } it { should have_db_index(:meetingid).unique(true) } it "default values" do room = BigbluebuttonRoom.new room.private.should be_falsey room.external.should be_falsey room.meetingid.should_not be_nil end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-2.1.0 | spec/models/bigbluebutton_room_db_spec.rb |
bigbluebutton_rails-2.0.0 | spec/models/bigbluebutton_room_db_spec.rb |