Skip to content

Commit de468c9

Browse files
committed
Also extend Mixin into Ronin::Code::SQL to provide class methods.
1 parent 2acd844 commit de468c9

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

lib/ronin/code/sql.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module Code
3030
#
3131
module SQL
3232
include Mixin
33+
extend Mixin
3334
end
3435
end
3536
end

spec/sql_spec.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,16 @@
55
it "must include SQL::Mixin" do
66
expect(subject).to include(Ronin::Code::SQL::Mixin)
77
end
8+
9+
describe ".sql" do
10+
it "should return a new SQL::StatementList" do
11+
expect(subject.sql).to be_kind_of(Ronin::Code::SQL::StatementList)
12+
end
13+
end
14+
15+
describe ".sqli" do
16+
it "should return a new SQL::Injection" do
17+
expect(subject.sqli).to be_kind_of(Ronin::Code::SQL::Injection)
18+
end
19+
end
820
end

0 commit comments

Comments
 (0)