Moves Models into their own namespace - Ref #1315
This commit is contained in:
@@ -6,6 +6,6 @@ describe WPScan::Finders::Plugins::BodyPattern do
|
||||
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
|
||||
let(:expected_all) { df_expected_all['plugins'] }
|
||||
let(:item_class) { WPScan::Plugin }
|
||||
let(:item_class) { WPScan::Model::Plugin }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,6 +6,6 @@ describe WPScan::Finders::Plugins::Comment do
|
||||
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
|
||||
let(:expected_all) { df_expected_all['plugins'] }
|
||||
let(:item_class) { WPScan::Plugin }
|
||||
let(:item_class) { WPScan::Model::Plugin }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,6 +8,6 @@ describe WPScan::Finders::Plugins::ConfigParser do
|
||||
# let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
#
|
||||
# let(:expected_all) { df_expected_all['plugins'] }
|
||||
# let(:item_class) { WPScan::Plugin }
|
||||
# let(:item_class) { WPScan::Model::Plugin }
|
||||
# end
|
||||
end
|
||||
|
||||
@@ -5,7 +5,7 @@ describe WPScan::Finders::Plugins::HeaderPattern do
|
||||
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
|
||||
def plugin(slug)
|
||||
WPScan::Plugin.new(slug, target)
|
||||
WPScan::Model::Plugin.new(slug, target)
|
||||
end
|
||||
|
||||
describe '#passive' do
|
||||
|
||||
@@ -6,6 +6,6 @@ describe WPScan::Finders::Plugins::JavascriptVar do
|
||||
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
|
||||
let(:expected_all) { df_expected_all['plugins'] }
|
||||
let(:item_class) { WPScan::Plugin }
|
||||
let(:item_class) { WPScan::Model::Plugin }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -6,6 +6,6 @@ describe WPScan::Finders::Plugins::Xpath do
|
||||
let(:fixtures) { DYNAMIC_FINDERS_FIXTURES.join('plugin_version') }
|
||||
|
||||
let(:expected_all) { df_expected_all['plugins'] }
|
||||
let(:item_class) { WPScan::Plugin }
|
||||
let(:item_class) { WPScan::Model::Plugin }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user