Skip to content

Commit 4dca258

Browse files
committed
fix: add verify_contents spec helper
1 parent 2f8dcbd commit 4dca258

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# frozen_string_literal: true
2+
3+
def verify_contents(subject, title, expected_lines)
4+
content = subject.resource('file', title).send(:parameters)[:content]
5+
expect(content.split("\n") & expected_lines).to match_array expected_lines.uniq
6+
end

0 commit comments

Comments
 (0)