spec/ rubocopied
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# encoding: UTF-8
|
||||
#--
|
||||
# WPScan - WordPress Security Scanner
|
||||
# Copyright (C) 2012-2013
|
||||
@@ -18,57 +19,58 @@
|
||||
|
||||
require File.expand_path(File.dirname(__FILE__) + '../../../lib/wpscan/wpscan_helper')
|
||||
|
||||
describe "common_helper" do
|
||||
describe "#get_equal_string" do
|
||||
describe 'common_helper' do
|
||||
describe '#get_equal_string' do
|
||||
after :each do
|
||||
output = get_equal_string_end(@input)
|
||||
|
||||
output.should == @expected
|
||||
end
|
||||
|
||||
it "sould return an empty string" do
|
||||
@input = [""]
|
||||
@expected = ""
|
||||
it 'sould return an empty string' do
|
||||
@input = ['']
|
||||
@expected = ''
|
||||
end
|
||||
|
||||
it "sould return an empty string" do
|
||||
@input = []
|
||||
@expected = ""
|
||||
it 'sould return an empty string' do
|
||||
@input = []
|
||||
@expected = ''
|
||||
end
|
||||
|
||||
it "sould return asdf" do
|
||||
@input = ["kjh asdf", "oijr asdf"]
|
||||
@expected = " asdf"
|
||||
it 'sould return asdf' do
|
||||
@input = ['kjh asdf', 'oijr asdf']
|
||||
@expected = ' asdf'
|
||||
end
|
||||
|
||||
it "sould return « BlogName" do
|
||||
@input = ["user1 « BlogName",
|
||||
"user2 « BlogName",
|
||||
"user3 « BlogName",
|
||||
"user4 « BlogName"]
|
||||
@expected = " « BlogName"
|
||||
it 'sould return « BlogName' do
|
||||
@input = ['user1 « BlogName',
|
||||
'user2 « BlogName',
|
||||
'user3 « BlogName',
|
||||
'user4 « BlogName']
|
||||
@expected = ' « BlogName'
|
||||
end
|
||||
|
||||
it "sould return an empty string" do
|
||||
@input = %w{user1 user2 user3 user4}
|
||||
@expected = ""
|
||||
it 'sould return an empty string' do
|
||||
@input = %w{user1 user2 user3 user4}
|
||||
@expected = ''
|
||||
end
|
||||
|
||||
it "sould return an empty string" do
|
||||
@input = ["user1 « BlogName",
|
||||
"user2 « BlogName",
|
||||
"user3 « BlogName",
|
||||
"user4 « BlogNamea"]
|
||||
@expected = ""
|
||||
it 'sould return an empty string' do
|
||||
@input = ['user1 « BlogName',
|
||||
'user2 « BlogName',
|
||||
'user3 « BlogName',
|
||||
'user4 « BlogNamea']
|
||||
@expected = ''
|
||||
end
|
||||
|
||||
it "sould return an empty string" do
|
||||
@input = %w{ user1 }
|
||||
@expected = ""
|
||||
it 'sould return an empty string' do
|
||||
@input = %w{ user1 }
|
||||
@expected = ''
|
||||
end
|
||||
|
||||
it "sould return | test" do
|
||||
@input = ["admin | test", "test | test"]
|
||||
@expected = " | test"
|
||||
it 'sould return | test' do
|
||||
@input = ['admin | test', 'test | test']
|
||||
@expected = ' | test'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user