Sha256: 4f16c3f10f95cf6751f879589510180c1ca271cb129e6a5860d5c6acf970d055

Contents?: true

Size: 560 Bytes

Versions: 5

Compression:

Stored size: 560 Bytes

Contents

require 'ronin/code/sql/insert'

require 'helpers/code'
require 'code/sql/has_fields_clause_examples'
require 'code/sql/has_default_values_clause_examples'
require 'code/sql/has_values_clause_examples'

describe Insert do
  before(:each) do
    @sql = Insert.new(common_dialect)
  end

  it_should_behave_like "has a fields clause"
  it_should_behave_like "has a default values clause"
  it_should_behave_like "has a values clause"

  it "should have a table option" do
    @sql.table :users
    @sql.instance_variable_get('@table').should == :users
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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