Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
[source-newline] test source newline validation
Browse files Browse the repository at this point in the history
  • Loading branch information
portertech committed Jun 12, 2017
1 parent 831c056 commit c0f52fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@
check[:source] = "switch-%42%"
@validator.validate_check(check)
expect(@validator.reset).to eq(1)
check[:source] = "switch\n42"
@validator.validate_check(check)
expect(@validator.reset).to eq(1)
check[:source] = "switch-42"
@validator.validate_check(check)
expect(@validator.reset).to eq(0)
Expand Down

0 comments on commit c0f52fb

Please sign in to comment.