Sha256: b4506fc0ec0b9ccf7a0fc8004aa7d6dbb70fa702e62ae26dcf2d07bbeb100820

Contents?: true

Size: 900 Bytes

Versions: 3

Compression:

Stored size: 900 Bytes

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_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

3 entries across 3 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.3.0.mweb1 spec/models/bigbluebutton_recording_db_spec.rb
bigbluebutton_rails-1.3.0 spec/models/bigbluebutton_recording_db_spec.rb
bigbluebutton_rails-1.3.0.beta1 spec/models/bigbluebutton_recording_db_spec.rb