Skip to content
Newer
Older
100644 23 lines (15 sloc) 436 Bytes
98053de First commit.
Chavez authored
1 require File.join( File.dirname(File.expand_path(__FILE__)), 'base')
2
3 describe AlPapi::Config do
4 let(:config) { AlPapi::Config.new api_key: TEST_KEY }
5
6 describe 'initialize' do
7
8 it 'sets api key' do
9 config.api_key.should eql TEST_KEY
10 end
11
12 it 'sets default host' do
13 config.host.should eql AlPapi::Config::DEFAULT_HOST
14 end
15
16 it 'sets default port' do
17 config.port.should eql 80
18 end
19
20 end
21
22 end
Something went wrong with that request. Please try again.