Sha256: 82de11aefd92291e5ac97b5c8186b734a1e81c685d1e4abd6e5921c39b250fc8
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
# encoding: utf-8 require 'integration_spec_helper' describe 'Login process' do if account_file_exists? context 'when email and password are correct' do it 'returns a valid object' do object = Rmega.login valid_account['email'], valid_account['password'] object.should respond_to :nodes end end context 'when email and password are invalid' do it 'raises an error' do lambda { Rmega.login 'a@apple.com', 'b' }.should raise_error(Rmega::ApiRequestError) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rmega-0.0.3 | spec/integration/login_spec.rb |