Sha256: 987a6c0485327c28748b7dfeddbe9c91946530bb8c507c8a1b10e8b9622b7202

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

require 'ronin/code/sql/from_clause'

require 'helpers/code'

shared_examples_for "has a from clause" do
  it "should have a from clause" do
    @sql.from :users

    should_have_clause(@sql,:from) do |from|
      from.table.should == :users
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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