Sha256: bcb07cfb96f3a3f1486a8c64fd09dd64b825b9e56b17c656beb4b0a74e50c60d

Contents?: true

Size: 308 Bytes

Versions: 20

Compression:

Stored size: 308 Bytes

Contents

require "spec_helper"

describe PagSeguro::Errors::Unauthorized do
  it "should be able to raise an unauthorized error" do
    lambda { raise PagSeguro::Errors::Unauthorized.new }.should raise_error(PagSeguro::Errors::Unauthorized, "Credentials provided (e-mail and token) failed to authenticate")
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
pag_seguro-0.5.5 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.5.4 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.5.3 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.5.2 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.5.1 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.4.1 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.4.0 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.3.2 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.3.1 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.3.0 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.2.3 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.2.2 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.2.1 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.2.0 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.9 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.8 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.7 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.6 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.4 spec/pag_seguro/errors/unauthorized_spec.rb
pag_seguro-0.1.3 spec/pag_seguro/errors/unauthorized_spec.rb