Sha256: 17093bd2a7a4cf271d3fc04a7d198943af5aeee150a8d647caae0aa6011546a6
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'spec_helper' require 'sql/statement_examples' require 'ronin/code/sql/statement' require 'ronin/code/sql/statements' describe Ronin::Code::SQL::Statements do subject { Object.new.extend(described_class) } describe "#statement" do let(:keyword) { :EXEC } it "should create an arbitrary statement" do expect(subject.statement(keyword).keyword).to eq(keyword) end end include_examples "Statement", :select, :SELECT, [1,2,3,:id] include_examples "Statement", :insert, :INSERT include_examples "Statement", :update, :UPDATE, :table include_examples "Statement", :delete, [:DELETE, :FROM], :table include_examples "Statement", :drop_table, [:DROP, :TABLE], :table end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-code-sql-2.0.0.beta1 | spec/sql/statements_spec.rb |