Rubocopification (unless ... else => if ... else, encoding, Multilines in {} block)

This commit is contained in:
erwanlr
2013-02-03 12:00:15 +01:00
parent 16cc53b8d4
commit 0bf392edc2
4 changed files with 9 additions and 7 deletions

View File

@@ -6,14 +6,14 @@ describe '#vulnerabilities' do
let(:location_url) { 'http://example.localhost/' }
let(:fixtures_dir) { SPEC_FIXTURES_WPSCAN_WP_PLUGIN_DIR + '/vulnerabilities' }
let(:vulns_file) { fixtures_dir + '/plugin_vulns.xml' }
let(:wp_plugin) {
let(:wp_plugin) do
WpPlugin.new(
base_url: location_url,
name: 'spec-plugin',
path: 'plugins/spec-plugin/',
vulns_file: vulns_file
)
}
end
it 'should return an empty array when no vulnerabilities are found' do