We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cbe1c5 commit 9fba403Copy full SHA for 9fba403
test/fixtures/ok/_data/releases.yml
test/fixtures/output_ok.txt
test/test_linter.rb
@@ -10,20 +10,11 @@
10
describe Linter do
11
12
before do
13
- @md_ok = "#{FIXTURES_PATH}/ok"
14
@md_errors = "#{FIXTURES_PATH}/errors"
15
16
- @output_ok = File.read("#{FIXTURES_PATH}/output_ok.txt")
17
@output_errors = File.read("#{FIXTURES_PATH}/output_errors.txt")
18
end
19
20
- it "can run ok" do
21
- Dir.chdir @md_ok
22
- stdout, _stderr = capture_io { Linter.new(exit_on_errors: false).run }
23
-
24
- _(stdout).must_equal @output_ok
25
- end
26
27
it "can find errors" do
28
Dir.chdir @md_errors
29
stdout, _stderr = capture_io { Linter.new(exit_on_errors: false).run }
0 commit comments