dan-chaks-computer-2:~/web/theatre-tickets chak$ ruby test/unit/movie_test_case.rb
Loaded suite test/unit/movie_test_case
Started
.....
Finished in 0.144437 seconds.

  1) Error: test_prevents_invalid_movie_destroy(MovieShowtimeTestCase)
ActiveRecord::StatementInvalid: PGError: ERROR: update or 
delete on table "movies" violates foreign key constraint 
"movie_showtimes_movie_id_fkey" on table "movie_showtimes"

  2) Error: test_prevents_invalid_theatre_destroy(MovieShowtimeTestCase)
ActiveRecord::StatementInvalid: PGError: ERROR: update or 
delete on table "theatres" violates foreign key constraint 
"movie_showtimes_theatre_id_fkey" on table "movie_showtimes"

14 tests, 19 assertions, 0 failures, 2 errors


