diff --git a/Guardfile b/Guardfile index 75aa93c15..5c48ddefe 100644 --- a/Guardfile +++ b/Guardfile @@ -6,6 +6,7 @@ # end # guard 'spork', :test_unit => true, :test_unit_env => {'RAILS_ENV' => 'test'}, :wait => 60 do + watch(%r{app/models/.+\.rb}) watch('config/application.rb') watch('config/environment.rb') watch('config/environments/test.rb') diff --git a/doc/Automated testing documentation.doc b/doc/Automated testing documentation.doc index d01506181..994dd0c18 100644 Binary files a/doc/Automated testing documentation.doc and b/doc/Automated testing documentation.doc differ diff --git a/test/unit/course_test.rb b/test/unit/course_test.rb index a9544fc05..d9cd6d00c 100644 --- a/test/unit/course_test.rb +++ b/test/unit/course_test.rb @@ -15,7 +15,6 @@ class CourseTest < ActiveSupport::TestCase error_keys = course.errors.keys valid_attr = [:password, :term, :name, :class_period] - puts error_keys valid_attr.each do |attr| assert(error_keys.include?(attr), "attr unknow: #{attr}") end @@ -43,7 +42,7 @@ class CourseTest < ActiveSupport::TestCase course.name = "test_course" assert course.valid? course.name = name_quirk - assert course.valid? + assert course.valid?, "Quirk name ===> #{course.name}" end test 'description too long must be valid.(4096)' do