Sha256: 87d1c9a1b24b70b5f643f8dc707018add77248f092f76ab3cfc10a5b88a7e5af

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 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::Errors::ServerError)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rmega-0.1.7 spec/integration/login_spec.rb
rmega-0.1.6 spec/integration/login_spec.rb