Sha256: cab8cd87cb42945f8caa2ec8def26a46a947ad8ee45f8c491a783280c7eb2aba

Contents?: true

Size: 179 Bytes

Versions: 13

Compression:

Stored size: 179 Bytes

Contents

require "spec_constants"
require "api_stubs"

RSpec::Matchers.define :have_JSON_error_code do |expected|
  match do |actual|
    actual['error']['code'] == expected.to_s
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hetzner-api-1.1.0 spec/spec_helper.rb
hetzner-api-1.0.6 spec/spec_helper.rb
hetzner-api-1.0.5 spec/spec_helper.rb
hetzner-api-1.0.4 spec/spec_helper.rb
hetzner-api-1.0.3 spec/spec_helper.rb
hetzner-api-1.0.2 spec/spec_helper.rb
hetzner-api-1.0.1 spec/spec_helper.rb
hetzner-api-1.0.0 spec/spec_helper.rb
hetzner-api-1.0.0.beta.2 spec/spec_helper.rb
hetzner-api-1.0.0.beta.1 spec/spec_helper.rb
hetzner-api-1.0.0.alpha.3 spec/spec_helper.rb
hetzner-api-1.0.0.alpha.2 spec/spec_helper.rb
hetzner-api-1.0.0.alpha.1 spec/spec_helper.rb