File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/ronin/exploits/mixins Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ module BuildDir
4141 #
4242 def perform_build
4343 exploit_name = self . class . id . tr ( '/' , '-' )
44- @build_dir = Dir . mktmpdir ( "ronin-exploit -#{ exploit_name } -" )
44+ @build_dir = Dir . mktmpdir ( "ronin-exploits -#{ exploit_name } -" )
4545
4646 super
4747 end
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def build
2525
2626 subject . perform_build
2727
28- expect ( subject . build_dir ) . to match ( %r{\A /tmp/ronin-exploit -#{ exploit_class . id } -\d +-\d +-[a-z0-9]+\z } )
28+ expect ( subject . build_dir ) . to match ( %r{\A /tmp/ronin-exploits -#{ exploit_class . id } -\d +-\d +-[a-z0-9]+\z } )
2929 expect ( File . directory? ( subject . build_dir ) ) . to be ( true )
3030 end
3131
@@ -47,7 +47,7 @@ def build
4747 it "must replace any '/' characters with a '-'" do
4848 subject . perform_build
4949
50- expect ( subject . build_dir ) . to match ( %r{\A /tmp/ronin-exploit -test-exploit-\d +-\d +-[a-z0-9]+\z } )
50+ expect ( subject . build_dir ) . to match ( %r{\A /tmp/ronin-exploits -test-exploit-\d +-\d +-[a-z0-9]+\z } )
5151 end
5252 end
5353 end
You can’t perform that action at this time.
0 commit comments