Sha256: b586aa8bc02797af35fa2094868537607ffffa69905f7df1a4c04adf3f9069c3
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe BigbluebuttonRecording 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(:recordid).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(:published).of_type(:boolean) } it { should have_db_column(:start_time).of_type(:datetime) } it { should have_db_column(:end_time).of_type(:datetime) } it { should have_db_column(:available).of_type(:boolean) } it { should have_db_column(:description).of_type(:string) } it { should have_db_column(:created_at).of_type(:datetime) } it { should have_db_column(:updated_at).of_type(:datetime) } it { should have_db_index(:room_id) } it { should have_db_index(:recordid).unique(true) } it "default values" do room = BigbluebuttonRecording.new room.published.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_recording_db_spec.rb |
bigbluebutton_rails-1.4.0.beta1 | spec/models/bigbluebutton_recording_db_spec.rb |