Skip to content

Instantly share code, notes, and snippets.

@bcardarella
Created June 29, 2009 20:14
Show Gist options
  • Select an option

  • Save bcardarella/137772 to your computer and use it in GitHub Desktop.

Select an option

Save bcardarella/137772 to your computer and use it in GitHub Desktop.
context "My Custom Query" do
setup do
@positive_record = positive_record_getter
@negative_record = negative_record_getter
@result_set = Report.custom_query
end
should "have a result set that contains the positive record" do
assert_contains @result_set, @positive_record
end
should "have a result set that does not contain the negative record" do
assert_does_not_contain @result_set, @positive_record
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment