Когда я делаю rspec spec , я получаю отчет о тестах следующим образом:
Course Group
Loged in
In the new course group form
Create a new Group course
Create a new Group course with complex name (FAILED - 1)
Create a new Group course with 3 subjects (FAILED - 2)
1) Course Group Loged in In the new course group form Create a new Group course with complex name
Failure/Error: course_groupDB.courses.count.should == 1
expected: 1
got: 0 (using ==)
# ./spec/acceptance/course_group_spec.rb:40:in `block (4 levels) in <top (required)>'
2) Course Group Loged in In the new course group form Create a new Group course with 3 subjects
Failure/Error: course_groupDB.courses.count.should == 3
expected: 3
got: 0 (using ==)
# ./spec/acceptance/course_group_spec.rb:54:in `block (4 levels) in <top (required)>'
Обратите внимание на то, что в конце, когда перечислены ошибки, название довольно запутанное, так как в нем смешаны все контексты, описания и примеры.
Есть ли способ просто показать это так же, как они перечислены ранее?
Как это:
1) Course Group
Loged in
In the new course group form
Create a new Group course with complex name
Failure/Error: course_groupDB.courses.count.should == 1
expected: 1
got: 0 (using ==)
# ./spec/acceptance/course_group_spec.rb:40:in `block (4 levels) in <top (required)>'
2) Course Group
Loged in
In the new course group form
Create a new Group course with 3 subjects
Failure/Error: course_groupDB.courses.count.should == 3
expected: 3
got: 0 (using ==)
# ./spec/acceptance/course_group_spec.rb:54:in `block (4 levels) in <top (required)>'