require File.dirname(__FILE__) + '/../../test_helper'

module Physical
  class ShowtimeCreateTestCase < Test::Unit::TestCase
    def setup
      @m = Movie.create!(
        :name => 'Casablanca',
        :length_minutes => 120,
        :rating => Rating::PG13)

      @t = Theatre.create!(
        :name => 'Kendall Cinema',
        :phone_number => '5555555555')

      @a = Auditorium.create!(
        :theatre => @t,
        :room => '1',
        :seats_available => 100) 
    end

    def test_getting_product_id
      ms = MovieShowtime.create(
        :movie_id => @m.id,
        :theatre_id => @t.id,
        :room => '1',
        :start_time => Time.new)
      assert ms.product_id
    end
  end
end       

