Sha256: e8cd436e9616b3b1605c6f1291c23a70ffc8188cb10e9820dd8ef688e8f51c69

Contents?: true

Size: 303 Bytes

Versions: 3

Compression:

Stored size: 303 Bytes

Contents

require_relative '../helper'

require 'grooveshark'

describe 'Errors' do
  it 'should test ApiError' do
    fault = {
      'code' => '25',
      'message' => 'Something went wrong'
    }

    error = Grooveshark::ApiError.new(fault)
    expect(error.to_s).to eq('25 - Something went wrong')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
grooveshark-0.2.14 spec/grooveshark/errors_spec.rb
grooveshark-0.2.13 spec/grooveshark/errors_spec.rb
grooveshark-0.2.12 spec/grooveshark/errors_spec.rb