aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/integration
diff options
context:
space:
mode:
Diffstat (limited to 'spec/arel/integration')
-rw-r--r--spec/arel/integration/joins/with_aggregations_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/arel/integration/joins/with_aggregations_spec.rb b/spec/arel/integration/joins/with_aggregations_spec.rb
index e6af920d32..b9cb4acc31 100644
--- a/spec/arel/integration/joins/with_aggregations_spec.rb
+++ b/spec/arel/integration/joins/with_aggregations_spec.rb
@@ -16,6 +16,10 @@ module Arel
end
describe '#attributes' do
+ it '' do
+ @relation1.join(@aggregation).on(@predicate)[@relation2[:user_id]].should_not be_nil
+ end
+
it 'it transforms aggregate expressions into attributes' do
join_with_aggregation = Join.new("INNER JOIN", @relation1, @aggregation, @predicate)
join_with_aggregation.attributes.should ==