루비의 RSpec/통합 테스팅에 대해 다소 혼란 스럽다.루비의 다른 테스트 키워드는 무엇입니까? 설명 대 vs 테스트
일부 테스트는 키워드 테스트로 시작하고 일부는 설명으로 시작하는 것으로 나타났습니다. 가장 큰 차이점은 무엇입니까? 그것은 모두 RSpec입니까? 예를 들어
test "email should be present" do
@user.email = " "
assert_not @user.valid?
end
및
describe 'can set' do
it 'calories' do
@dessert.calories = 80
end
end
편집 : MiniTest RSpec에 장단점 대?