Created
June 29, 2009 20:14
-
-
Save bcardarella/137772 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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