diff options
Diffstat (limited to 'spec/arel/table_spec.rb')
-rw-r--r-- | spec/arel/table_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb index 5c8cfac012..15f2e024e0 100644 --- a/spec/arel/table_spec.rb +++ b/spec/arel/table_spec.rb @@ -87,6 +87,11 @@ module Arel rel = Table.new :users, :engine => 'foo' check rel.engine.should == 'foo' end + + it 'ignores as if it equals name' do + rel = Table.new :users, :as => 'users' + rel.table_alias.should be_nil + end end describe 'order' do |