aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/table_spec.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:40:58 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:40:58 -0700
commitd827d6e9ee10fa0906b7b3cfd191e6f9ac5d6b08 (patch)
tree7ed24e39bc417a0ba6c2f344cc6b616c35c2a8e0 /spec/arel/table_spec.rb
parent199d17b2dbb56000098a0372f0c64ce0aa3711ce (diff)
downloadrails-d827d6e9ee10fa0906b7b3cfd191e6f9ac5d6b08.tar.gz
rails-d827d6e9ee10fa0906b7b3cfd191e6f9ac5d6b08.tar.bz2
rails-d827d6e9ee10fa0906b7b3cfd191e6f9ac5d6b08.zip
to_sql visitor started
Diffstat (limited to 'spec/arel/table_spec.rb')
-rw-r--r--spec/arel/table_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb
index c52a111489..be153438c4 100644
--- a/spec/arel/table_spec.rb
+++ b/spec/arel/table_spec.rb
@@ -14,6 +14,14 @@ module Arel
end
end
+ it "should have a name" do
+ @relation.name.should == :users
+ end
+
+ it "should have an engine" do
+ @relation.engine.should == Table.engine
+ end
+
describe '[]' do
describe 'when given a', Symbol do
it "manufactures an attribute if the symbol names an attribute within the relation" do