1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/spec/arel/attributes/attribute_spec.rb
2010-08-12 15:22:26 -07:00

17 lines
414 B
Ruby

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