require 'spec_helper'

describe VideoSource do

  let (:user) {FactoryGirl.create(:user) }
  let (:music_session) { FactoryGirl.create(:active_music_session, :creator => user)}
  let (:connection) { FactoryGirl.create(:connection, :user => user, :music_session => music_session) }
  let (:msuh) {FactoryGirl.create(:music_session_user_history, :history => music_session.music_session, :user => user, :client_id => connection.client_id) }
  

  before(:each) do
  	msuh.touch
  end

  describe "simple create" do
    it "create a video source" do
      video_source = FactoryGirl.create(:video_source, :connection => connection)
      video_source.should_not be_nil
    end
  end
end