Sha256: 6d12609d058779a8ef82c3f2303308dc7f08d4f3009240e36a76b4af28529c17
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 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_column(:size).of_type(:integer) } 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) room.size.should be(0) end end end
Version data entries
3 entries across 3 versions & 1 rubygems