Sha256: a66f18109474324214d12c62093c115e8de88108bbcbac0947124d86dfe97ec4

Contents?: true

Size: 307 Bytes

Versions: 5

Compression:

Stored size: 307 Bytes

Contents

require 'ronin/code/sql/where_clause'

require 'helpers/code'

shared_examples_for "has a where clause" do
  it "should have a where clause" do
    @sql.instance_eval do
      where name == 'bob'
    end

    should_have_clause(@sql,:where) do |clause|
      clause.expr.should_not be_nil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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