Browse Source

testing doc.

tags/V20140725
yanxd 12 years ago
parent
commit
9be52f6cf7
3 changed files with 2 additions and 2 deletions
  1. +1
    -0
      Guardfile
  2. BIN
      doc/Automated testing documentation.doc
  3. +1
    -2
      test/unit/course_test.rb

+ 1
- 0
Guardfile View File

@@ -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')


BIN
doc/Automated testing documentation.doc View File


+ 1
- 2
test/unit/course_test.rb View File

@@ -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


Loading…
Cancel
Save