Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created April 5, 2012 19:43
Show Gist options
  • Save bodepd/2313514 to your computer and use it in GitHub Desktop.
Save bodepd/2313514 to your computer and use it in GitHub Desktop.
def param_value(subject, type, title, param)
subject.resource(type, title).send(:parameters)[param.to_sym]
end
def verify_contents(subject, title, expected_lines)
content = subject.resource('file', title).send(:parameters)[:content]
(content.split("\n") & expected_lines).should == expected_lines
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment