Sha256: 0a50f390285d03ec6227117a5e91e4db316c744d4056dfdc39a1e970a3c64501

Contents?: true

Size: 331 Bytes

Versions: 7

Compression:

Stored size: 331 Bytes

Contents

require "spec_helper"

describe Wego::Response do
  describe ".parse_json" do
    it "parses json response" do
      content = File.read "./spec/fixtures/locations.json"
      response = Wego::Response.parse_json(content)

      expect(response.count).to eq(3)
      expect(response.class).to be Wego::OpenStruct
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wego-0.2.2 spec/wego/response_spec.rb
wego-0.2.1 spec/wego/response_spec.rb
wego-0.2.0 spec/wego/response_spec.rb
wego-0.1.5 spec/wego/response_spec.rb
wego-0.1.4 spec/wego/response_spec.rb
wego-0.1.3 spec/wego/response_spec.rb
wego-0.1.2 spec/wego/response_spec.rb