namecheap 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Transfers do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Transfers.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.transfers.should_not be_nil
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Users do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Users.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.users.should_not be_nil
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'helper'
2
-
3
- describe Namecheap::Whois_Guard do
4
- before { set_dummy_config }
5
-
6
- it 'should initialize' do
7
- Namecheap::Whois_Guard.new
8
- end
9
-
10
- it 'should be already initialized from the Namecheap namespace' do
11
- Namecheap.whois_guard.should_not be_nil
12
- end
13
- end
@@ -1,39 +0,0 @@
1
- require File.dirname(__FILE__) + '/helper'
2
-
3
- describe Namecheap do
4
- before { reset_config }
5
-
6
- context "with default config" do
7
- subject { Namecheap.config }
8
-
9
- its(:username) { should be_nil }
10
- its(:key) { should be_nil }
11
- its(:client_ip) { should be_nil }
12
- end
13
-
14
- describe '.configure' do
15
- it 'should set the api key' do
16
- expect {
17
- Namecheap.configure do |config|
18
- config.key = 'the_apikey'
19
- end
20
- }.to change { Namecheap::Config.key }.to('the_apikey')
21
- end
22
-
23
- it 'should set the username' do
24
- expect {
25
- Namecheap.configure do |config|
26
- config.username = 'the_username'
27
- end
28
- }.to change { Namecheap::Config.username }.to('the_username')
29
- end
30
-
31
- it 'should set the client_ip' do
32
- expect {
33
- Namecheap.configure do |config|
34
- config.client_ip = 'the_client_ip'
35
- end
36
- }.to change { Namecheap::Config.client_ip }.to('the_client_ip')
37
- end
38
- end
39
- end