forked from wheelhouseio/curriculum-patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec.rb
More file actions
27 lines (23 loc) · 683 Bytes
/
spec.rb
File metadata and controls
27 lines (23 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "minitest/autorun"
class TestMeme < MiniTest::Test
def test_course_linter
output = `bundle exec yaml-lint courses`
puts output
assert_equal true, output.match("error").nil?
end
def test_course_schema
output = `bundle exec kwalify -lf schema_course.yml courses/*`
puts output
assert_equal true, output.match("INVALID").nil?
end
def test_module_linter
output = `bundle exec yaml-lint modules`
puts output
assert_equal true, output.match("error").nil?
end
def test_module_schema
output = `bundle exec kwalify -lf schema_module.yml modules/*`
puts output
assert_equal true, output.match("INVALID").nil?
end
end