Sha256: 37f90416f1347fd7fcbfbeba2eb018d0c9ca32217fcc3cced0e077e8b9b52c84

Contents?: true

Size: 426 Bytes

Versions: 1

Compression:

Stored size: 426 Bytes

Contents

require 'integration_spec_helper'

describe 'Login' do

  if account_file_exists?

    context 'when email and password are correct' do
      it 'does not raise erorrs' do
        expect { login }.not_to raise_error
      end
    end

    context 'when email and password are invalid' do
      it 'raises an error' do
        expect { Rmega.login('foo', 'bar') }.to raise_error(Rmega::ServerError)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmega-0.2.0 spec/integration/login_spec.rb