Sha256: aa1376f997f0320465be0d2617db9e4432b0a3983e4e6aaa5121d8c43b34b75b

Contents?: true

Size: 342 Bytes

Versions: 7

Compression:

Stored size: 342 Bytes

Contents

# encoding: utf-8

shared_examples_for 'a generated SQL expression' do
  it { should respond_to(:to_s) }

  its(:to_s) { should be_kind_of(String) }
end

shared_examples_for 'a generated SQL SELECT query' do
  it_should_behave_like 'a generated SQL expression'

  its(:name) { should == relation_name }

  its(:name) { should be_frozen }
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
axiom-sql-generator-0.2.0 spec/shared/generated_sql_behavior.rb
axiom-sql-generator-0.1.0 spec/shared/generated_sql_behavior.rb
veritas-sql-generator-0.0.7 spec/shared/generated_sql_behavior.rb
veritas-sql-generator-0.0.6 spec/shared/generated_sql_behavior.rb
veritas-sql-generator-0.0.5 spec/shared/generated_sql_behavior.rb
veritas-sql-generator-0.0.4 spec/shared/generated_sql_behavior.rb
veritas-sql-generator-0.0.3 spec/shared/generated_sql_behavior.rb