Sha256: c87667e319f21515f35b608bb00018a7d00cbe3cd8368f8b0e2890d07f92b254
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'spec_helper' describe BigbluebuttonMeeting do # to ensure that the migration is correct context "db" do 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(:running).of_type(:boolean) } it { should have_db_column(:recorded).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_column(:create_time).of_type(:integer) } it { should have_db_index([:meetingid, :create_time]).unique(true) } it { should have_db_column(:ended).of_type(:boolean) } it { should have_db_column(:server_url).of_type(:string) } it { should have_db_column(:server_secret).of_type(:string) } it { should have_db_column(:title).of_type(:string) } it "default values" do room = BigbluebuttonMeeting.new room.running.should be(false) room.ended.should be(false) room.recorded.should be(false) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-3.0.0 | spec/models/bigbluebutton_meeting_db_spec.rb |