Skip to content
Browse files

Improve test

  • Loading branch information...
1 parent f234731 commit 74810da6de56f3607a458b923db52964b0d79233 @bogdan committed Mar 8, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 spec/datagrid/drivers/active_record_spec.rb
View
3 spec/datagrid/drivers/active_record_spec.rb
@@ -18,7 +18,6 @@
it "should support append_column_queries" do
scope = subject.append_column_queries(Entry.scoped, [Datagrid::Columns::Column.new(SimpleReport, :sum_group_id, 'sum(entries.group_id)')])
- scope.select_values.length.should == 2
- scope.select_values.should == ["#{Entry.quoted_table_name}.*", 'sum(entries.group_id) AS sum_group_id']
+ scope.to_sql.should == 'SELECT "entries".*, sum(entries.group_id) AS sum_group_id FROM "entries" '
end
end

0 comments on commit 74810da

Please sign in to comment.
Something went wrong with that request. Please try again.