Sha256: a385d857cbe4813caa93d5cfafa6e421203d060d7f71221b08d63dfd6ddb537b

Contents?: true

Size: 630 Bytes

Versions: 8

Compression:

Stored size: 630 Bytes

Contents

require 'helper'

module Arel
  module Visitors
    class TestDot < MiniTest::Unit::TestCase
      def setup
        @visitor = Visitors::Dot.new
      end

      # unary ops
      [
        Arel::Nodes::Not,
        Arel::Nodes::Group,
        Arel::Nodes::On,
        Arel::Nodes::Grouping,
        Arel::Nodes::Offset,
        Arel::Nodes::Having,
        Arel::Nodes::UnqualifiedColumn,
        Arel::Nodes::Top,
        Arel::Nodes::Limit,
      ].each do |klass|
        define_method("test_#{klass.name.gsub('::', '_')}") do
          op = klass.new(:a)
          @visitor.accept op
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
arel-2.0.10 test/visitors/test_dot.rb
square-arel-2.0.9.20110222133018 test/visitors/test_dot.rb
arel-2.0.9 test/visitors/test_dot.rb
arel-2.0.9.rc1 test/visitors/test_dot.rb
arel-2.0.8 test/visitors/test_dot.rb
arel-2.0.8.beta.20110131120940 test/visitors/test_dot.rb
arel-2.0.7 test/visitors/test_dot.rb
arel-2.0.7.beta.20110110114925 test/visitors/test_dot.rb