aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:22:26 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-12 15:22:26 -0700
commit4127484bc172900f0817d6adda666a1397ff038e (patch)
treebaf9b2fc45f24b48a5c03635408d1a84e20eb311 /spec
parent196b4e05b7390ac31e12a17ae224b1cf35e4becd (diff)
downloadrails-4127484bc172900f0817d6adda666a1397ff038e.tar.gz
rails-4127484bc172900f0817d6adda666a1397ff038e.tar.bz2
rails-4127484bc172900f0817d6adda666a1397ff038e.zip
adding first node
Diffstat (limited to 'spec')
-rw-r--r--spec/arel/attributes/attribute_spec.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/arel/attributes/attribute_spec.rb b/spec/arel/attributes/attribute_spec.rb
new file mode 100644
index 0000000000..5599bb7b51
--- /dev/null
+++ b/spec/arel/attributes/attribute_spec.rb
@@ -0,0 +1,17 @@
+require 'spec_helper'
+
+module Arel
+ module Attributes
+ describe 'attribute' do
+ describe '#eq' do
+ it 'should return an equality node' do
+ attribute = Attribute.new nil, nil, nil
+ equality = attribute.eq 1
+ equality.left.should == attribute
+ equality.right.should == 1
+ equality.should be_kind_of Nodes::Equality
+ end
+ end
+ end
+ end
+end