aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/arel/algebra/unit/primitives/expression_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/arel/algebra/unit/primitives/expression_spec.rb b/spec/arel/algebra/unit/primitives/expression_spec.rb
index 82d12d53f9..768bb492a7 100644
--- a/spec/arel/algebra/unit/primitives/expression_spec.rb
+++ b/spec/arel/algebra/unit/primitives/expression_spec.rb
@@ -7,6 +7,12 @@ module Arel
@attribute = @relation[:id]
end
+ describe "#inspect" do
+ it "returns a simple, short inspect string" do
+ @attribute.count.inspect.should == "<Arel::Count <Attribute id>>"
+ end
+ end
+
describe Expression::Transformations do
before do
@expression = Count.new(@attribute)