Sha256: 3998759a883d7d7171c63a0f84d08567018a24bf76213f18fe60be51010a7f04

Contents?: true

Size: 640 Bytes

Versions: 4

Compression:

Stored size: 640 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe SQL::Generator::Function::Numeric, '#visit_veritas_function_numeric_unary_plus' do
  subject { object.visit_veritas_function_numeric_unary_plus(unary_plus) }

  let(:described_class) { Class.new(SQL::Generator::Visitor) { include SQL::Generator::Function::Numeric } }
  let(:unary_plus)      { Attribute::Integer.new(:number).unary_plus                                       }
  let(:object)          { described_class.new                                                              }

  it_should_behave_like 'a generated SQL expression'

  its(:to_s) { should eql('+ ("number")') }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-sql-generator-0.0.7 spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb
veritas-sql-generator-0.0.6 spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb
veritas-sql-generator-0.0.5 spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb
veritas-sql-generator-0.0.4 spec/unit/veritas/sql/generator/function/numeric/visit_veritas_function_numeric_unary_plus_spec.rb