Sha256: 62fc5cb4add1b4d448a6de51896bac88a0f53df1d4c85c29463d701a50039458
Contents?: true
Size: 899 Bytes
Versions: 2
Compression:
Stored size: 899 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(:record).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_false room.record.should be_false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-1.4.0 | spec/models/bigbluebutton_meeting_db_spec.rb |
bigbluebutton_rails-1.4.0.beta1 | spec/models/bigbluebutton_meeting_db_spec.rb |