Skip to content

Instantly share code, notes, and snippets.

@JustinChristensen
Created February 23, 2012 02:07
Show Gist options
  • Save JustinChristensen/1889207 to your computer and use it in GitHub Desktop.
Save JustinChristensen/1889207 to your computer and use it in GitHub Desktop.
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