diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-03-10 18:16:07 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-03-10 18:16:07 -0300 |
commit | b706f690b611d647aae15a85caa19d167814ae3c (patch) | |
tree | 05a17b2e937f894ea03f3fff535fd62cbc31a025 /spec/arel/algebra/unit/relations/relation_spec.rb | |
parent | c03d4bb8e4acac95961a1a9eb9578fa33a47da66 (diff) | |
download | rails-b706f690b611d647aae15a85caa19d167814ae3c.tar.gz rails-b706f690b611d647aae15a85caa19d167814ae3c.tar.bz2 rails-b706f690b611d647aae15a85caa19d167814ae3c.zip |
Arel doesn't has to know if a table or column exists.
Diffstat (limited to 'spec/arel/algebra/unit/relations/relation_spec.rb')
-rw-r--r-- | spec/arel/algebra/unit/relations/relation_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/arel/algebra/unit/relations/relation_spec.rb b/spec/arel/algebra/unit/relations/relation_spec.rb index cf6509fe6a..a1d1793d92 100644 --- a/spec/arel/algebra/unit/relations/relation_spec.rb +++ b/spec/arel/algebra/unit/relations/relation_spec.rb @@ -16,10 +16,9 @@ module Arel end describe 'when given a', Symbol, String do - it "returns the attribute with the same name, if it exists" do + it "returns the attribute with the same name" do check @relation[:id].should == @attribute1 check @relation['id'].should == @attribute1 - @relation[:does_not_exist].should be_nil end end end |