diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 16:58:19 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-10 16:58:19 -0700 |
commit | f0f6b7fb90b936cb78d786896598486821db6559 (patch) | |
tree | 9a5d7d61be6e70fd4c132457dec965ee41533422 /spec/arel/table_spec.rb | |
parent | 1ba8ac0848f40c7fa18c9e7bdac944a50d3c348c (diff) | |
download | rails-f0f6b7fb90b936cb78d786896598486821db6559.tar.gz rails-f0f6b7fb90b936cb78d786896598486821db6559.tar.bz2 rails-f0f6b7fb90b936cb78d786896598486821db6559.zip |
adding not equal node, column names are expected to be symbols
Diffstat (limited to 'spec/arel/table_spec.rb')
-rw-r--r-- | spec/arel/table_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb index 6512ab310b..7cc0b20a25 100644 --- a/spec/arel/table_spec.rb +++ b/spec/arel/table_spec.rb @@ -120,7 +120,7 @@ module Arel it 'returns a list of columns' do columns = @relation.columns check columns.length.should == 2 - columns.map { |x| x.name }.sort.should == %w{ name id }.sort + columns.map { |x| x.name.to_s }.sort.should == %w{ name id }.sort end end @@ -136,7 +136,7 @@ module Arel describe 'when given a', Symbol do it "manufactures an attribute if the symbol names an attribute within the relation" do column = @relation[:id] - check column.name.should == 'id' + check column.name.should == :id column.should be_kind_of Attributes::Integer end end |