spec/support/emitter_helper.rb
# Create an example that the expected SQL is generated
#
# @param [SQL::AST::Node] node
# @param [String] expectation
#
# @return [undefined]
#
# @api public
Create an example that the expected SQL is generated
Create an example that the expected SQL is generated
def assert_generates(node, expectation)
    it "generates #{node.type} correctly" do
      SQL::Generator::Emitter.visit(node, stream)
      expect(stream.output).to eql(expectation)
    end
  end
def assert_generates ( node , expectation ) it "generates #{node.type} correctly" do SQL :: Generator :: Emitter . visit ( node , stream ) expect ( stream . output ) . to eql ( expectation ) end end
Create an example that the expected SQL is generated
Create an example that the expected SQL is generated
None
undefined
node
expectation
None
api
None