Updates rubocop
This commit is contained in:
@@ -100,7 +100,7 @@ shared_examples 'WordPress::CustomDirectories' do
|
||||
before { target.content_dir = dir }
|
||||
|
||||
its(:content_dir) { should eq dir.chomp('/') }
|
||||
its(:plugins_dir) { should eq dir.chomp('/') + '/plugins' }
|
||||
its(:plugins_dir) { should eq "#{dir.chomp('/')}/plugins" }
|
||||
end
|
||||
|
||||
context "when content_dir = #{dir} and plugins_dir = #{dir}" do
|
||||
|
||||
@@ -14,8 +14,8 @@ shared_examples 'App::Views::Enumeration::Medias' do
|
||||
end
|
||||
|
||||
context 'when medias found' do
|
||||
let(:m1) { media.new(target_url + '?attachment_id=1', found_by: 'Attachment Brute Forcing') }
|
||||
let(:m2) { media.new(target_url + '?attachment_id=5', found_by: 'Attachment Brute Forcing') }
|
||||
let(:m1) { media.new("#{target_url}?attachment_id=1", found_by: 'Attachment Brute Forcing') }
|
||||
let(:m2) { media.new("#{target_url}?attachment_id=5", found_by: 'Attachment Brute Forcing') }
|
||||
let(:medias) { [m1, m2] }
|
||||
let(:expected_view) { File.join(view, 'medias') }
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ shared_examples 'App::Views::Enumeration::Timthumbs' do
|
||||
end
|
||||
|
||||
context 'when timthumbs found' do
|
||||
let(:tt) { timthumb.new(target_url + 'tt.php', found_by: 'Known Locations') }
|
||||
let(:tt2) { timthumb.new(target_url + 'tt2.php', found_by: 'Known Locations') }
|
||||
let(:tt) { timthumb.new("#{target_url}tt.php", found_by: 'Known Locations') }
|
||||
let(:tt2) { timthumb.new("#{target_url}tt2.php", found_by: 'Known Locations') }
|
||||
let(:timthumbs) { [tt, tt2] }
|
||||
|
||||
context 'when not vulnerable' do
|
||||
|
||||
Reference in New Issue
Block a user