Refactor Resource model's spec
Add test for Resource#learner_compatibility_score
Implement Resource#learner_compatibility_score