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.050854 seconds.

  1) Error: test_empty_name(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   new row for relation 
"movies" violates check constraint "movies_name_check"

  2) Error: test_invalid_rating(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   new row for relation 
"movies" violates check constraint "movies_rating_check"

  3) Error: test_negative_length(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   new row for relation 
"movies" violates check constraint "movies_length_minutes_check"

  4) Error: test_no_length(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   null value in column
"length_minutes" violates not-null constraint     

  5) Error: test_no_name(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   null value in
column "name" violates not-null constraint     

  6) Error: test_no_rating(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   null value in
column "rating" violates not-null constraint

  7) Error: test_same_movie(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:
duplicate key violates unique constraint "movies_name_key"

  8) Error: test_zero_length(MovieTestCase):
ActiveRecord::StatementInvalid: PGError: ERROR:   new row for relation 
"movies" violates check constraint "movies_length_minutes_check"

16 tests, 16 assertions, 0 failures, 8 errors



