Sha256: 1305338744d18ca50d57f860a6dd421e9667a83f844900800f03dc4386232547

Contents?: true

Size: 616 Bytes

Versions: 1

Compression:

Stored size: 616 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe SQL::Generator::Direction, '#visit_axiom_relation_operation_order_descending' do
  subject { object.visit_axiom_relation_operation_order_descending(direction) }

  let(:described_class) { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Direction } }
  let(:direction)       { Attribute::Integer.new(:id).desc                                         }
  let(:object)          { described_class.new                                                      }

  it_should_behave_like 'a generated SQL expression'

  its(:to_s) { should eql('"id" DESC') }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-sql-generator-0.1.0 spec/unit/axiom/sql/generator/direction/visit_axiom_relation_operation_order_descending_spec.rb