Uses the frozen_string_literal magic comment (will be the default in Ruby 3)

This commit is contained in:
erwanlr
2019-03-21 17:41:29 +00:00
parent 898e8d4546
commit 047a188b34
256 changed files with 512 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::InterestingFinding do
it_behaves_like WPScan::References do
subject(:finding) { described_class.new('http://e.org/file.php', opts) }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::Media do
subject(:media) { described_class.new(url) }
let(:url) { 'http://e.oeg/?attachment_id=2' }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::Plugin do
subject(:plugin) { described_class.new(slug, blog, opts) }
let(:slug) { 'spec' }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::Theme do
subject(:theme) { described_class.new(slug, blog, opts) }
let(:slug) { 'spec' }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::Timthumb do
subject(:timthumb) { described_class.new(url, opts) }
let(:url) { 'http://wp.lab/wp-content/timthumb.php' }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::WpItem do
subject(:wp_item) { described_class.new(slug, blog, opts) }
let(:slug) { 'test_item' }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::WpVersion do
describe '#new' do
context 'when invalid number' do

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::Model::XMLRPC do
subject(:xml_rpc) { described_class.new('http//e.org/xmlrpc.php') }