test/exercism/submission_test.rb in exercism-0.0.24 vs test/exercism/submission_test.rb in exercism-0.0.25

- old
+ new

@@ -23,6 +23,38 @@ end def test_identifies_javascript_tests assert Exercism::Submission.test?('queens.spec.js') end + + def test_knows_clojure_code + refute Exercism::Submission.test?('queens.clj') + end + + def test_identifies_clojure_tests + assert Exercism::Submission.test?('queens_test.clj') + end + + def test_knows_python_code + refute Exercism::Submission.test?('queens.py') + end + + def test_identifies_python_tests + assert Exercism::Submission.test?('queens_test.py') + end + + def test_knows_go_code + refute Exercism::Submission.test?('queens.go') + end + + def test_identifies_go_tests + assert Exercism::Submission.test?('queens_test.go') + end + + def test_full_path + submission = Exercism::Submission.new('./test/fixtures/ruby/bob/bob.rb') + refute submission.path.start_with?('.') + assert submission.path.end_with?('/test/fixtures/ruby/bob/bob.rb') + diff = submission.path.length - submission.file.length + assert diff > 1 + end end