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 2f8dcbd commit 4dca258Copy full SHA for 4dca258
spec/support/spec/verify_contents.rb
@@ -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