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::DB::DynamicFinders::Base do
subject(:dynamic_finders) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::DynamicFinders::Plugin do
subject(:dynamic_finders) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::DynamicFinders::Theme do
subject(:dynamic_finders) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::DynamicFinders::Wordpress do
subject(:dynamic_finders) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Fingerprints do
describe '#unique_fingerprints' do
# Handled in #wp_unique_fingerprints

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Plugin do
describe '#vulnerabilities' do
# Handled in spec/app/models/plugin_spec

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Plugins do
subject(:plugins) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Theme do
describe '#vulnerabilities' do
# Handled in spec/app/models/theme_spec

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Themes do
subject(:themes) { described_class }

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::WpItem do
describe '#vulnerabilities' do
# Handled in spec/app/models/plugin_spec

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::WpItems do
# Handled in plugins_spec & themes_spec
end

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
describe WPScan::DB::Version do
describe '#vulnerabilities' do
# Handled in spec/app/models/wp_version_spec