Sha256: 78ce6fd58ac9b612a12ef26dac3c1147ccf07267a1e00a1d2bdd58749c8ea465

Contents?: true

Size: 312 Bytes

Versions: 5

Compression:

Stored size: 312 Bytes

Contents

require 'ronin/code/sql/fields_clause'

require 'helpers/code'

shared_examples_for "has a fields clause" do
  it "should have a fields clause" do
    fields = [:id, :name, :users]

    @sql.fields(*fields)

    should_have_clause(@sql,:fields) do |clause|
      clause.fields.should == fields
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ronin-sql-0.2.4 spec/code/sql/has_fields_clause_examples.rb
ronin-sql-0.2.3 spec/code/sql/has_fields_clause_examples.rb
ronin-sql-0.2.1 spec/code/sql/has_fields_clause_examples.rb
ronin-sql-0.2.0 spec/code/sql/has_fields_clause_examples.rb
ronin-sql-0.2.2 spec/code/sql/has_fields_clause_examples.rb