diff options
Diffstat (limited to 'spec/arel/engines/sql/unit/predicates/binary_spec.rb')
-rw-r--r-- | spec/arel/engines/sql/unit/predicates/binary_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/arel/engines/sql/unit/predicates/binary_spec.rb b/spec/arel/engines/sql/unit/predicates/binary_spec.rb index ccf9d4ef73..783e6c6a7b 100644 --- a/spec/arel/engines/sql/unit/predicates/binary_spec.rb +++ b/spec/arel/engines/sql/unit/predicates/binary_spec.rb @@ -2,15 +2,16 @@ require 'spec_helper' module Arel describe Binary do + class ConcreteBinary < Binary + def predicate_sql + "<=>" + end + end + before do @relation = Table.new(:users) @attribute1 = @relation[:id] @attribute2 = @relation[:name] - class ConcreteBinary < Binary - def predicate_sql - "<=>" - end - end end describe "with compound predicates" do |