Sha256: 5985b8dc58f5734e2e21322ed0cb5f022a33f036ca4e550017c88d8d9470a067

Contents?: true

Size: 414 Bytes

Versions: 8

Compression:

Stored size: 414 Bytes

Contents

require 'integration_spec_helper'

describe 'Login' do

  if account?

    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

8 entries across 8 versions & 1 rubygems

Version Path
rmega-0.3.2 spec/integration/login_spec.rb
rmega-0.3.1 spec/integration/login_spec.rb
rmega-0.2.7 spec/integration/login_spec.rb
rmega-0.2.6 spec/integration/login_spec.rb
rmega-0.2.5 spec/integration/login_spec.rb
rmega-0.2.4 spec/integration/login_spec.rb
rmega-0.2.2 spec/integration/login_spec.rb
rmega-0.2.1 spec/integration/login_spec.rb