testing doc.
This commit is contained in:
parent
0a06e2033f
commit
9be52f6cf7
|
@ -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')
|
||||
|
|
Binary file not shown.
|
@ -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…
Reference in New Issue