Created
February 23, 2012 02:07
-
-
Save JustinChristensen/1889207 to your computer and use it in GitHub Desktop.
This file contains 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
test "date has display column but sorts by survey column" do | |
@entries = @sr.entries(:sorting_order_by => 577, :sorting_dir => 'ASC') | |
@entries.collect! { |entry| entry[2] } | |
assert_equal @ordered_dates_asc, @entries | |
assert_not_equal @ordered_dates_desc, @entries | |
debugger | |
@entries = @sr.entries(:sorting_order_by => 577, :sorting_dir => 'DESC') | |
@entries.collect! { |entry| entry[2] } | |
assert_equal @ordered_dates_desc, @entries | |
assert_not_equal @ordered_dates_asc, @entries | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment