Some Browser::Options work
This commit is contained in:
@@ -2,4 +2,32 @@
|
||||
|
||||
shared_examples 'Browser::Options' do
|
||||
|
||||
describe 'basic_auth=' do
|
||||
|
||||
end
|
||||
|
||||
describe 'max_threads' do
|
||||
|
||||
end
|
||||
|
||||
describe 'user_agent=' do
|
||||
|
||||
end
|
||||
|
||||
describe 'user_agent' do
|
||||
|
||||
end
|
||||
|
||||
describe 'proxy=' do
|
||||
|
||||
end
|
||||
|
||||
describe 'proxy_auth=' do
|
||||
|
||||
end
|
||||
|
||||
describe 'override_config_with_options' do
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -34,12 +34,12 @@ shared_examples 'WpTarget::WpRegistrable' do
|
||||
|
||||
context 'when multisite' do
|
||||
let(:multisite) { true }
|
||||
it 'returns false (multisite)' do
|
||||
it 'returns false' do
|
||||
@stub = { status: 302, headers: { 'Location' => 'wp-login.php?registration=disabled' } }
|
||||
@expected = false
|
||||
end
|
||||
|
||||
it 'returns true (multisite)' do
|
||||
it 'returns true' do
|
||||
@stub = { status: 200, body: %{<form id="setupform" method="post" action="wp-signup.php">} }
|
||||
@expected = true
|
||||
end
|
||||
@@ -48,12 +48,12 @@ shared_examples 'WpTarget::WpRegistrable' do
|
||||
context 'when not multisite' do
|
||||
let(:multisite) { false }
|
||||
|
||||
it 'returns false (not multisite)' do
|
||||
it 'returns false' do
|
||||
@stub = { status: 302, headers: { 'Location' => 'wp-login.php?registration=disabled' } }
|
||||
@expected = false
|
||||
end
|
||||
|
||||
it 'returns true (not multisite)' do
|
||||
it 'returns true' do
|
||||
@stub = { status: 200, body: %{<form name="registerform" id="registerform" action="wp-login.php"} }
|
||||
@expected = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user