Sha256: 981e16be86a6936f55ed928a548d9a62975c17e37ea6440aa928f55ec351196b

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe SQL::Generator, '.parenthesize!' do
  subject { object.parenthesize!(string) }

  let(:string) { '1 + 1'                   }
  let(:object) { self.class.described_type }

  it_should_behave_like 'a generated SQL expression'

  it 'modifies the string inline' do
    should equal(string)
  end

  its(:to_s) { should == '(1 + 1)' }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-sql-generator-0.0.7 spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb
veritas-sql-generator-0.0.6 spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb
veritas-sql-generator-0.0.5 spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb
veritas-sql-generator-0.0.4 spec/unit/veritas/sql/generator/class_methods/parenthesize_spec.rb