Sha256: 4a48144be35cdb3c58e60bca1801fd04d8cf36eaa4e51b665e03a69eeccd4565

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

require 'integration_spec_helper'

describe 'Login' do

  if account_file_exists?

    context 'when email and password are correct' do
      it 'returns a Storage object' do
        expect(login).to respond_to :nodes
      end
    end

    context 'when email and password are invalid' do
      it 'raises an error' do
        expect { Rmega.login('a@apple.com', 'b') }.to raise_error(Rmega::RequestError)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rmega-0.1.5 spec/integration/login_spec.rb
rmega-0.1.4 spec/integration/login_spec.rb
rmega-0.1.3 spec/integration/login_spec.rb
rmega-0.1.2 spec/integration/login_spec.rb
rmega-0.1.1 spec/integration/login_spec.rb
rmega-0.1.0 spec/integration/login_spec.rb