Some Browser::Options work

This commit is contained in:
erwanlr
2013-04-10 18:34:50 +02:00
parent b9524499bf
commit 1615c0f84e
8 changed files with 82 additions and 41 deletions

View File

@@ -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

View File

@@ -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