Sha256: 205b30de2f85361eba84b6fe6c85c7663b367433fa41f2604b8875407d1bb1d8
Contents?: true
Size: 911 Bytes
Versions: 1
Compression:
Stored size: 911 Bytes
Contents
require 'spec_helper' describe BigbluebuttonMeeting 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(:room_id).of_type(:integer) } it { should have_db_column(:meetingid).of_type(:string) } it { should have_db_column(:name).of_type(:string) } it { should have_db_column(:start_time).of_type(:datetime) } it { should have_db_column(:running).of_type(:boolean) } it { should have_db_column(:recorded).of_type(:boolean) } it { should have_db_column(:creator_id).of_type(:integer) } it { should have_db_column(:creator_name).of_type(:string) } it { should have_db_index([:meetingid, :start_time]).unique(true) } it "default values" do room = BigbluebuttonRoom.new room.running.should be_falsey room.record_meeting.should be_falsey end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-2.0.0 | spec/models/bigbluebutton_meeting_db_spec.rb |