spec/oi_api_spec.rb in oi-api-ruby-0.1.1 vs spec/oi_api_spec.rb in oi-api-ruby-0.1.2

- old
+ new

@@ -4,9 +4,13 @@ it 'has a version' do expect(OiApi::VERSION).to be_instance_of(String) end + it 'raises an error when instantiated with no username and password' do + expect { OiApi.new }.to raise_error(OiApi::NoCredentialsError) + end + context 'configuration' do context '.username' do it 'defaults nil' do expect(OiApi.username).to be_nil