Sha256: 4b389e7530074cffe393cdb49a591b0521a0c83e7bfb0e219a4f8287cf22aa2c

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 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(:integer) }
    it { should have_db_column(:end_time).of_type(:integer) }
    it { should have_db_column(:available).of_type(:boolean) }
    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

1 entries across 1 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 spec/models/bigbluebutton_recording_db_spec.rb